Git Product home page Git Product logo

Comments (8)

louisameline avatar louisameline commented on September 26, 2024

Hello, please try with v2.3.0 on dev branch.

from tooltipster.

jonw100 avatar jonw100 commented on September 26, 2024

Yes, it works with v2.3.0

Thanks for a great plugin, and the quick response.

from tooltipster.

willkoehler avatar willkoehler commented on September 26, 2024

The tooltip only closes the first time. When I open a second tooltip, tapping outside the tooltip doesn't close it. I wonder if this line

$('body').one('touchstart.tooltipster', function(event) {

should be

$('body').on('touchstart.tooltipster', function(event) {

from tooltipster.

louisameline avatar louisameline commented on September 26, 2024

@willkoehler : in Tooltipster v2.3.0 ?

from tooltipster.

willkoehler avatar willkoehler commented on September 26, 2024

Yes v2.3.0. I download the dev branch head yesterday and tested with that. I can look into it more on my end if you can't reproduce.

I also would like clicking outside the tooltip to close the tooltip on desktop browsers. This is what I'm doing currently to make that happen:

click_event = if is_touch_device() then 'touchstart' else 'click'
$('.tooltip').tooltipster
  theme: '.tooltipster-filtered-grid'
  trigger: 'click'
  delay: 0
  speed: 0
  position: 'bottom'
  # Hide tooltip when clicking/tapping anywhere on the page
  functionReady: (origin, tooltip) -> $('body').one click_event, => $(origin).tooltipster('hide')

from tooltipster.

louisameline avatar louisameline commented on September 26, 2024

If you're not going to use tooltipster's default click trigger system, use 'custom' and open the tooltip on click yourself.

By the way, what you're trying to accomplish will be the default behavior for 'click' trigger in the next release probably.

from tooltipster.

willkoehler avatar willkoehler commented on September 26, 2024

Great. Thanks for the tip.

from tooltipster.

louisameline avatar louisameline commented on September 26, 2024

@willkoehler : you should checkout v3.0.0 on dev :) Updated doc is on the gh-pages branch, although we don't advertise it yet. Feedback is welcome.

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.