Skip to content

Commit 128eda3

Browse files
committed
Update #1 v1.1
Fix for sciter v4.3.0.20+
1 parent b053937 commit 128eda3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

movableView.tis

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
// Movable View v1.1
2+
// https://github.com/MustafaHi/Sciter-MovableView
3+
14
// Call movableView('.selector');
25
function movableView(s)
36
{
47
var xoff,yoff;
58
var dragging = false;
6-
var body = $({s});
79
function doDrag() { while( dragging ) view.doEvent(); }
810

911
function onMouseDown(e)
@@ -19,7 +21,7 @@ function movableView(s)
1921
{
2022
if( dragging )
2123
{
22-
view.move( e.xScreen - xoff, e.yScreen - yoff, true);
24+
view.move( e.xScreen - xoff, e.yScreen - yoff, false);
2325
return true;
2426
}
2527
return true;

0 commit comments

Comments
 (0)