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

Please Add PointerEvents API support for external mouse / touchpad on tablet support / iPad with Magic Keyboard Support #77

Open
agotfredsen82 opened this issue Jun 19, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@agotfredsen82
Copy link

agotfredsen82 commented Jun 19, 2024

Hi. Love your framework but as it does not have support for PointerEvents such as

addEventListener("pointerdown", (event) => {});

addEventListener("pointermove", (event) => {});

addEventListener("pointerenter", (event) => {});

addEventListener("pointerover", (event) => {});

etc etc it does not work at all when using external mouse, Magic Keyboard with touchpad or remote controlling a iPad from a Mac .

Please add PointerEvents API support so it functions correctly, it feels it´s not that much work to add to have it function properly .

Best Regards

@sashamilenkovic
Copy link
Contributor

@agotfredsen82 That's interesting. Yes, we are currently not using the PointerEvents API and instead are differentiating between Drag and Touch Events. Definitely something we can look into modifying in the future. However, I also use a mac with a touch pad and have never run into this issue. Is there some sort of reproduction you can produce or additional details you can give about the issue you're having?

@agotfredsen82
Copy link
Author

@sashamilenkovic yes absolutely . the reproduction is easy . it works on a Mac with touchpad because the touchpad counts as a mouseevent, however if you are using an iPad that you control remotely using the Mac touchpad you get a virtual cursor on your iPad , it shows as a round circle , now that circle don´t count as an touch event or moue event . its a pointer event.

You can´t simulate on the Xcode Simulator because that events counts as an touch event if you use your Mac trackpad .

Most important and where I first noticed the issue is on iPad Pro with connected Magic Keyboard with build in trackpad. You know that black case that has keyboard and trackpad that you can attach to the iPad Pro .. now that trackpad counts as an Pointer Event ...

ergo the framework don´t work with users who owns iPad with external trackpad / keyboard or Mac users owning a Ipad and is controlling it using the Universal Control feature ..

@sashamilenkovic
Copy link
Contributor

sashamilenkovic commented Jun 20, 2024

@agotfredsen82 Oh gotcha, I misunderstood. Yes, this is something we'll look into. Thanks for letting us know!

@sashamilenkovic sashamilenkovic self-assigned this Jun 20, 2024
@sashamilenkovic sashamilenkovic added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Jun 20, 2024
@agotfredsen82
Copy link
Author

agotfredsen82 commented Jun 30, 2024

Not problem @sashamilenkovic :-) Happy to help . Any progress on this ? It feels such a bummer that every time I´m using an iPad with Magic Keyboard and using the trackpad the drag drop does not work and I´m like . ohh yeah.. I need to touch the iPad screen . The drag and drop is literally the only thing that does not work in the thing we build using a iPad connected trackpad with this framework so the experience gets .. awkward ..

@sashamilenkovic
Copy link
Contributor

@agotfredsen82 apologies for the late reply; I started working on this last night and made a good bit of progress. No timetable but hopefully this will be released sooner rather than later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants