File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -593,16 +593,9 @@ var LibraryBrowser = {
593
593
Browser . mouseMovementY = Browser . getMovementY ( event ) ;
594
594
}
595
595
596
- // check if SDL is available
597
- if ( typeof SDL != "undefined" ) {
598
- Browser . mouseX = SDL . mouseX + Browser . mouseMovementX ;
599
- Browser . mouseY = SDL . mouseY + Browser . mouseMovementY ;
600
- } else {
601
- // just add the mouse delta to the current absolute mouse position
602
- // FIXME: ideally this should be clamped against the canvas size and zero
603
- Browser . mouseX += Browser . mouseMovementX ;
604
- Browser . mouseY += Browser . mouseMovementY ;
605
- }
596
+ // add the mouse delta to the current absolute mouse position
597
+ Browser . mouseX += Browser . mouseMovementX ;
598
+ Browser . mouseY += Browser . mouseMovementY ;
606
599
} else {
607
600
if ( event . type === 'touchstart' || event . type === 'touchend' || event . type === 'touchmove' ) {
608
601
var touch = event . touch ;
You can’t perform that action at this time.
0 commit comments