Giter VIP home page Giter VIP logo

Comments (2)

CoeusCC avatar CoeusCC commented on May 20, 2024

Could you maybe add a 3 (or so) second delay for the action after the mouseleave binding?

EDIT: I should add that after playing with it for a second, I see why that would not be a fix either.

It appears as though the div is being added to the bottom of the html. Would adding the div inside of the li for the button, cause the mouseleave to apply to the popover or would that still be seen by the script as "leaving the span element"?

from socialcount.

CoeusCC avatar CoeusCC commented on May 20, 2024

I've pinned the problem down.

The static buttons at the bottom of the example page don't exhibit this problem. I noticed that when you leave the button, the li element reverts to a non-hover state and the CSS changes .socialcount .button { to display:none;

Changing it to display block all the time has the following effect:

  • Like, Tweet and +1 are all there as text to begin with.
  • After hovering, even for a moment, the ajax portion of the plugin kicks in the buttons and they don't disappear.
  • Hovering over g+ works as expected.

Since Facebook and Twitter require you to click before any action occurs (in their cases, a popup), they do not appear to suffer any problems. I propose (and will use) the following change until a better one is identified.

https://gist.github.com/4392058

from socialcount.

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.