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

Sub-menus not showing on hover in no-touch-sceen in chrome and firefox. #69

Open
cacatalano opened this issue Apr 17, 2017 · 2 comments

Comments

@cacatalano
Copy link

cacatalano commented Apr 17, 2017

Website is jbarthes.com, version 1.5.3. I am eperiencing this issue on a Lenovo laptop. I have screenshots from the inspector in Chrome Version 57.0.2987.133, where the the sub-menus do not appear on hover, and Edge, where they do appear.

chrome - touch screen
edge-notouchscreen

@cacatalano
Copy link
Author

cacatalano commented Apr 17, 2017

After disabling 'Touch Events API' in chrome://flags, sub-menu appeared on hover. Could the fact that since verson 56 Chrome treats all document level touch event listeners as passive be causing this? https://www.chromestatus.com/features/5093566007214080

chome touch events api disabled

@cacatalano
Copy link
Author

This seems to have fixed the issue. Added to the functions.js

function portfolio_is_touch_device() {
return window.addEventListener('touchstart', function onFirstTouch() {

// set some global variable
window.portfolio_is_touch_device = true;

}

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

No branches or pull requests

1 participant