mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
UWP: better mouse interaction support
This commit is contained in:
parent
f78ca5794a
commit
f2f8223cf1
9 changed files with 101 additions and 14 deletions
|
@ -64,7 +64,7 @@ public class JNIServo {
|
|||
|
||||
public native void pinchZoomEnd(float factor, int x, int y);
|
||||
|
||||
public native void click(int x, int y);
|
||||
public native void click(float x, float y);
|
||||
|
||||
public static class ServoOptions {
|
||||
public String args;
|
||||
|
|
|
@ -160,7 +160,7 @@ public class Servo {
|
|||
mRunCallback.inGLThread(() -> mJNI.pinchZoomEnd(factor, x, y));
|
||||
}
|
||||
|
||||
public void click(int x, int y) {
|
||||
public void click(float x, float y) {
|
||||
mRunCallback.inGLThread(() -> mJNI.click(x, y));
|
||||
}
|
||||
|
||||
|
|
|
@ -134,7 +134,7 @@ public class ServoSurface {
|
|||
mServo.scrollEnd(dx, dy, x, y);
|
||||
}
|
||||
|
||||
public void click(int x, int y) {
|
||||
public void click(float x, float y) {
|
||||
mServo.click(x, y);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue