We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Property 'clientX' does not exist on type 'DraggableEvent'. Property 'clientX' does not exist on type 'TouchEvent<HTMLElement | SVGElement>'.
how to mention the clientX for both touch and mouse event
const onLabelDragged:DraggableEventHandler = (e) => { const sliderEle = sliderRef.current; if (sliderEle) { const sliderRect = sliderRef.current?.getBoundingClientRect(); let selectedStrikeIndex = Math.floor( (e.clientX - sliderRect.left + sliderEle.scrollLeft) / 24 <------ ); } };
I tried this too
((e.clientX || e.touches[0].clientX) - sliderRect.left + sliderEle.scrollLeft) / 24
The text was updated successfully, but these errors were encountered:
Same here, no updates on this problem?
Sorry, something went wrong.
No branches or pull requests
Property 'clientX' does not exist on type 'DraggableEvent'.
Property 'clientX' does not exist on type 'TouchEvent<HTMLElement | SVGElement>'.
how to mention the clientX for both touch and mouse event
I tried this too
The text was updated successfully, but these errors were encountered: