GithubHelp home page GithubHelp logo

Comments (4)

louisameline avatar louisameline commented on June 18, 2024

Hello,

I am trying to debug tooltipster on mobile devices right now. Can you please describe the faulty behavior you currently see, and the actual behavior you would expect ? Thank you.

from tooltipster.

db654 avatar db654 commented on June 18, 2024

Not necessarily a mobile device issue but this was specifically on a touchscreen laptop that also used a mouse. The original issue was on detection of ontouchstart, the plugin would bind to that event instead of mouseover. Fine for tablets, phones etc but not for notebooks.

The fix put in place for that (see jquery.tooltipster.js line 86) would listen for mousemove and set touchDevice to false. The problem as I see it is if the user doesn't move their mouse before initialization, the fix doesn't work.

from tooltipster.

louisameline avatar louisameline commented on June 18, 2024

Please checkout the "touch" branch of the project, as I believe the issue is now fixed and will be merged in the next release. Use the regular version of the JS file as the minified version is not always up to date on that branch.

Be aware that the Touch branch is built on top of the refatored version of tooltipster, which needs testing on its own. Please provide feedback on how things work on your end (good or bad).

So, the touch capability is no longer opposed to the mouse capability : both can happen and will now be supported at the same time. Example : a tooltip appears because of a mouseover event, and disappears because of a touch event. Beside being not available at page load, mouse detection is never reliable anyway as mouse events can be simulated by other scripts or the browser itself.

The update also includes a fix for tooltips that sometimes never closed on touch devices.

from tooltipster.

louisameline avatar louisameline commented on June 18, 2024

Merged into dev branch.

from tooltipster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.