-
Notifications
You must be signed in to change notification settings - Fork 163
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
Menu Dropdowns don't work at times with Wacom device #99
Comments
Hi, unfortunately, I am not able to test this personally at the moment but could you please mention what exact device are you using (model, etc.)? I will try to find a way to test this. |
It occurs on multiple Wacom devices, Intuos models. I flagged a similar issue with the Elementor team and the fix was to check for "e.pointerType === 'pen'" as an input type. Hope that helps? |
Please see these docs... |
Thanks for the valuable input! It seems a fix for Wacom devices is very simple then, however, I am not sure this is a proper generic fix. Since currently "pen" input is treated the same way as "touch" (BTW, if you "click" a parent item with the Wacom pen, it shows the sub menu, right?) and I tend to believe this should stay that way since normally a pen device is not able to move a cursor on the screen - unless it's a Wacom pen as I now understand - sorry but I must admit I am not personally familiar with these devices. So I am really a bit hesitant and puzzled how to address this. :? |
Yes and no: Other digital pens are able to do this, too. So its probably not just an issue with Wacom devices. Also, one may configure their pen device differently, eg. if its used as a mouse replacement. Update: Just found this answer on Stack Overflow: https://stackoverflow.com/a/51959749/8612451 Essentially the respondent suggests using Pressure.js, which also appear as suggestion in similar questions on SO elsewhere. cu, w0lf. |
I think the event may be getting confused somehow. Sometimes it will act like mouse where dropdown will work on hover and at other times it acts like touch, where you have to click for it to dropdown. Maybe when checking for input types use a switch or if 'mouse' || 'pen' then action. The issue Elementor had was on scroll. As soon as you'd hover over their main widget menu, it would start scrolling, rather than waiting for a drag event. Here was my hack to fix perfect-scrollbar.js until Elementor upgraded to a newer version: /* perfect-scrollbar v0.6.12 */ function p(t){ |
There is an issue when using Wacom devices that dropdowns don't drop down. It doesn't add the 'highlighted' class to HTML. I have also experienced issues on some of your demo's. As soon as I use the touchpad on Mac it works, but when switching back to Wacom device it fails again.
The text was updated successfully, but these errors were encountered: