I
I
iplaton2019-03-01 19:59:04
css
iplaton, 2019-03-01 19:59:04

How to implement tooltips for touchpads?

For menu items on mouseover and mouseout events, a div with a tooltip is shown or hidden. Works great on desktop. And for the touchpad, the tooltip behaves unpredictably. Either the menu click is immediately processed without a hint, or the hint is shown and hangs, does not hide, interfering with viewing the content ... Who does what? A minimal example is desirable, because I'm not very good at js ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2019-03-01
@iamd503

There is no hover event on touchpads. So either drop this idea or do a click event

S
Sergey Gornostaev, 2016-10-10
@sweezy

$("#callback").submit(function() {
    var form = this;
    $.ajax({
        ...
    }).done(function() {
        form.reset();
    });
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question