Comments (4)
@rharkor FYI [email protected]
is out now
from react.
Hey @rharkor, there was a change in behaviour to detect long press release even if it was outside of element (I will add an option to automatically cancel long press outside element if desired) but it shouldn't happen if the time was shorter than threshold (I even wrote a test to check this case).
If you want to cancel long press when moving outside of an element you can use cancelOnMovement
as a temporary solution until I will add an option mentioned above.
from react.
I've just published [email protected]
so you can try it with option cancelOutsideElement: true
to see if that's the result you are expecting.
from react.
Hi @minwork the cancelOutsideElement
worked perfeclty thak's for your fast answer! ❤️
from react.
Related Issues (20)
- On Chrome for mobile, the click event triggers event if element was created after the pointerup event HOT 10
- Always sending last item context (v3) HOT 3
- Expand Codecov workflow action to cover all packages
- package.json should have the types property inside 'exports' field so that TS types can be correctly imported HOT 6
- Remove npm-publish library
- Separate build and test workflows
- Migrate react-interval-hook
- Add support for key long press HOT 1
- Migrate use-double-tap documentation to GitBook HOT 1
- Migrate react-interval-hook documentation to GitBook
- Add 'stateful' option to react-interval-hook HOT 1
- Move time param to options
- Add tests for case when trying to read position from unrecognised event HOT 1
- Refactor type names and structure
- Change default value of onFinish callback to undefined
- Add pause method to controls
- [QUESTION]How to avoid children triger onClick when longPress is trigger? HOT 2
- how to cancel a long press after it has started using custom logic? HOT 1
- useLongPress: Cancel when multiple touches occur HOT 2
- Not working on Next.js HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.