Skip to content

Commit 6d62778

Browse files
hansonrhansonr
authored andcommitted
error check for dragging
1 parent f607ba4 commit 6d62778

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,10 @@ if (!target) {
15461546

15471547

15481548
if (J2S._dmouseOwner) {
1549-
J2S._dmouseDrag(ev);
1549+
if (J2S._dmouseDrag)
1550+
J2S._dmouseDrag(ev);
1551+
else
1552+
J2S._dmouseOwner = null;
15501553
}
15511554

15521555
if (J2S._traceMouseMove)

0 commit comments

Comments
 (0)