|
@@ -159,8 +159,8 @@ class CameraController extends h3d.scene.Object {
|
|
|
@:privateAccess scene.events.startCapture(onEvent, function() {
|
|
|
pushing = -1;
|
|
|
var wnd = hxd.Window.getInstance();
|
|
|
- wnd.mouseMode = Absolute;
|
|
|
wnd.setCursorPos(Std.int(pushStartX), Std.int(pushStartY));
|
|
|
+ wnd.mouseMode = Absolute;
|
|
|
}, e.touchId);
|
|
|
pushing = e.button;
|
|
|
pushTime = haxe.Timer.stamp();
|
|
@@ -171,8 +171,6 @@ class CameraController extends h3d.scene.Object {
|
|
|
if( pushing == e.button ) {
|
|
|
pushing = -1;
|
|
|
var wnd = hxd.Window.getInstance();
|
|
|
- wnd.mouseMode = Absolute;
|
|
|
- wnd.setCursorPos(Std.int(pushStartX), Std.int(pushStartY));
|
|
|
@:privateAccess scene.events.stopCapture();
|
|
|
if( e.kind == ERelease && haxe.Timer.stamp() - pushTime < 0.2 && hxd.Math.distance(e.relX - pushStartX,e.relY - pushStartY) < 5 )
|
|
|
onClick(e);
|