We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b053937 commit 128eda3Copy full SHA for 128eda3
1 file changed
movableView.tis
@@ -1,9 +1,11 @@
1
+// Movable View v1.1
2
+// https://github.com/MustafaHi/Sciter-MovableView
3
+
4
// Call movableView('.selector');
5
function movableView(s)
6
{
7
var xoff,yoff;
8
var dragging = false;
- var body = $({s});
9
function doDrag() { while( dragging ) view.doEvent(); }
10
11
function onMouseDown(e)
@@ -19,7 +21,7 @@ function movableView(s)
19
21
20
22
if( dragging )
23
- view.move( e.xScreen - xoff, e.yScreen - yoff, true);
24
+ view.move( e.xScreen - xoff, e.yScreen - yoff, false);
25
return true;
26
}
27
0 commit comments