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.
Files changed (2) hide show
  1. package/lib/darwin.js +3 -3
  2. 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
- // so the release has to be waiting there before the press is sent.
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() {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-pointer",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Simulated pointer input for testing Bare apps",
5
5
  "exports": {
6
6
  "./package": "./package.json",