-
Notifications
You must be signed in to change notification settings - Fork 309
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
Using pointer.touch cannot be dragged under windows system #626
Labels
Comments
Hm interesting... that kind of sucks. I'll see what I can do but I don't have much time atm. |
I'd like to avoid relying on user agent. |
Merged
Merged
Should be fixed in |
Thank you very much! I will try. |
This was referenced Sep 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Sandbox or Video
``
import React from 'react';
import { useSpring, animated } from '@react-spring/web';
import { useDrag } from '@use-gesture/react';
export default function Test() {
const [{ x, y }, api] = useSpring(() => ({ x: 0, y: 0 }));
const bind = useDrag(
({ down, movement: [mx, my] }) => {
console.log('drag work---->');
api.start({ x: down ? mx : 0, y: down ? my : 0, immediate: down });
},
{ pointer: { touch: true } },
);
return (
<>
<animated.div {...bind()} style={{ x, y, boxShadow: 'rgba(0, 0, 0, 0.15) 0px 1px 2px 0px' }}>
box
</animated.div>
</>
);
}
``
Information:
Checklist:
touch-action: none
to the draggable element.The text was updated successfully, but these errors were encountered: