Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v1.0.9 #335

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open

Update to v1.0.9 #335

wants to merge 48 commits into from

Conversation

RWAP
Copy link

@RWAP RWAP commented Mar 23, 2023

Various updates as suggested / requested to the new RWAP/jquery-ui-touch-punch master.

RWAP and others added 30 commits January 29, 2019 13:24
Combine suggested changes to take account of issues with the original jquery-ui-touch-punch.js which has not been updated since 2014 - https://github.com/furf/jquery-ui-touch-punch
Lines dealing with "fix for zoomed devices while dragging" prevented jQuery ui sortable from moving items after you drag them to a new position
This fixes the issue: furf#315 where the Apple Pencil triggers a touchmove event and you may struggle to trigger a click with the pencil
Previous release had an issue where clicking through to an input or a button (for example the close button on jQuery.ui dialog boxes)  was not being recognised as a click.  Incorporated another fix from the v0.2.3 branch so the code now treats anything as a click if (a) they leave theri finger on the control for less than 500ms, or (b) they do not move their finger more than 10 pixels
Prevent simulation of two clicks when interaction hasn't moved
Changed .bind and .unbind to .on and .off (works with jQuery v1.7 also)
Firefox on Lenova touch screen (and similar devices) was still failing the $.support.touch test.
Updated comments and header
Minified version was the original and never updated - so has been removed from this fork
Change to ensure that startedMove and startPos are always reset on a touchstart, and touchMoved is reset after a touchEnd.
Fix draggable during mobile scrolling
Added check for MS Surface device support
package.json is needed to register the package on npmjs.com. Adresses #23
In the AMD definition the 'jquery.ui' dependency is invalid. Building a project with webpack results in this error:

> ERROR  Failed to compile with 1 errors
>
> This dependency was not found:
>
> * jquery.ui in ./node_modules/@rwap/jquery-ui-touch-punch/jquery.ui.touch-punch.js

Using 'jquery-ui' fixes that.
Defining jquery-ui as dependency instead of jquery.ui
Remove bower.json dependency on original touch-punch
RWAP and others added 18 commits July 27, 2022 08:11
Where the pointer is over an input or text area field, the user was unable to click on that field to enter data. Code added to ignore this.
Ignore where pointer is over an input or textarea
Thanks to @nitrotap - some minor improvements to the code
Original touch punch website no longer available.
Changed the initMouseEvent() to use MouseEvent() method instead,.
Change to .bind and .unbind functionality
Replace deprecated $.fn.bind/unbind
Updated version number to v1.1.2
Correction of Typo in line 199
Update version number on package
* dblclick support

Send dblclick if  there are two touches in less than 400ms

* MouseEvent repalces createEvent('MouseEvents')

* Remove MouseEvent initialization
Incorporates pull request which corrects use of MouseEvent creation and supports emulation of double click event on a mouse
Horizontal scrolling within an overflow-x: scroll container wasn't working on mobile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants