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

Ignore Pointer on input / textarea #334

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

Conversation

RWAP
Copy link

@RWAP RWAP commented Feb 25, 2023

No description provided.

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 added 2 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.
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.

5 participants