bare-pointer 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/darwin.js +3 -3
- package/package.json +1 -1
package/lib/darwin.js
CHANGED
|
@@ -28,14 +28,14 @@ module.exports = class DarwinPointer {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
// A control tracks the mouse by reading the event queue until it is released,
|
|
31
|
-
//
|
|
31
|
+
// and a press that could start a double click is held back until the event
|
|
32
|
+
// after it, so both have to go through the queue in order.
|
|
32
33
|
tap(view, x, y) {
|
|
33
34
|
const window = view.window
|
|
34
35
|
const point = view.convertPointToView(x, y, null)
|
|
35
36
|
|
|
37
|
+
AppKitApplication.postEvent(this._event(TYPE.LEFT_MOUSE_DOWN, window, point))
|
|
36
38
|
AppKitApplication.postEvent(this._event(TYPE.LEFT_MOUSE_UP, window, point))
|
|
37
|
-
|
|
38
|
-
window.sendEvent(this._event(TYPE.LEFT_MOUSE_DOWN, window, point))
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
destroy() {}
|