mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 13:00:12 -07:00
Attempt to support 1.13+ sub-pixel cursor
This commit is contained in:
parent
d183c991a0
commit
156f414cfc
6 changed files with 8 additions and 15 deletions
|
|
@ -444,8 +444,8 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
case MotionEvent.ACTION_MOVE:
|
||||
if (!CallbackBridge.isGrabbing() && e.getPointerCount() >= 2 && !LauncherPreferences.PREF_DISABLE_GESTURES) { //Scrolling feature
|
||||
CallbackBridge.sendScroll(Tools.pxToDp(mouse_x - scrollInitialX)/30 , Tools.pxToDp(mouse_y - scrollInitialY)/30);
|
||||
scrollInitialX = (int)mouse_x;
|
||||
scrollInitialY = (int)mouse_y;
|
||||
scrollInitialX = mouse_x;
|
||||
scrollInitialY = mouse_y;
|
||||
} else if (!CallbackBridge.isGrabbing() && e.getPointerCount() == 1) { //Touch hover
|
||||
CallbackBridge.sendCursorPos(mouse_x, mouse_y);
|
||||
prevX = e.getX();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue