OSX: fix for doubleclick and dragging #72
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These 4 commits solve the following issues:
General:
2dede35: enables calling multiple dragRel functions with small and large dx/dy in sequence. Previously, dragging lost track when using multiple calls as the OS could not follow the speed.
OSX
dce333d: added 0.01 delay for the OS to catch up in _dragTo. (similar to _moveTo)
a655757 and 14e2ad0 : fixed multi-click support by adding a new function. The calls to 'doubleClick' and 'tripleClick' now function as expected. 'click' with 'click=' just executes single clicks.
This PR fixes issue #71
Edit: As noted at several places, the window in which a double click should be performed has to be active/in-focus! So, in order to use a double click properly: