zingtouch | JavaScript touch gesture detection library | iOS library
kandi X-RAY | zingtouch Summary
kandi X-RAY | zingtouch Summary
ZingTouch is built to make implementing gestures for the browser as easy or complex as you need it to be. ZingTouch comes with 6 main gestures :. These gestures can be customized including the number of inputs it accepts, or how sensitive the gesture is to be recognized.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of zingtouch
zingtouch Key Features
zingtouch Examples and Code Snippets
Community Discussions
Trending Discussions on zingtouch
QUESTION
ZingTouch is a JavaScript touch gesture detection library for the modern web.
After I started using it, I could not enter words into my input fields anymore.
CodePen Example with the same problem: Link: https://codepen.io/anon/pen/xMVXyQ
My input field looks like this:
...ANSWER
Answered 2020-Jan-04 at 15:21The ZingTouch.Region
has a third parameter preventDefault
that can be used to turn of this behaviour.
like:
const zt = new ZingTouch.Region(document.body, undefined, false)
const zt = new ZingTouch.Region(element, capture, preventDefault)
- element - The element to set the listener upon
- capture - Whether the region listens for captures or bubbles.
- preventDefault - Disables browser functionality such as scrolling and zooming over the region.
See https://github.com/zingchart/zingtouch#region
After turning preventDefault
to false
it is possible to e.g. listen on document events and using input fields below. Normally zingtouch adds touch-action: none;
to the style of the element, this prevents the interaction.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install zingtouch
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page