You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Remove broken scroll gesture on Android
This commit is contained in:
@@ -113,11 +113,6 @@ public class GodotLib {
|
||||
*/
|
||||
public static native void doubleTap(int buttonMask, int x, int y);
|
||||
|
||||
/**
|
||||
* Forward scroll events from the main thread to the GL thread.
|
||||
*/
|
||||
public static native void scroll(int x, int y);
|
||||
|
||||
/**
|
||||
* Forward accelerometer sensor events from the main thread to the GL thread.
|
||||
* @see android.hardware.SensorEventListener#onSensorChanged(SensorEvent)
|
||||
|
||||
@@ -79,15 +79,6 @@ public class GodotGestureHandler extends GestureDetector.SimpleOnGestureListener
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
|
||||
//Log.i("GodotGesture", "onScroll");
|
||||
final int x = Math.round(distanceX);
|
||||
final int y = Math.round(distanceY);
|
||||
GodotLib.scroll(x, y);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onFling(MotionEvent event1, MotionEvent event2, float velocityX, float velocityY) {
|
||||
//Log.i("GodotGesture", "onFling");
|
||||
|
||||
Reference in New Issue
Block a user