jquery-gentleSelect icon indicating copy to clipboard operation
jquery-gentleSelect copied to clipboard

no mouseleave on touch devices

Open gcphost opened this issue 11 years ago • 3 comments

Hi again, still loving the script.

I just started to build out a mobile theme using the gentleselect but there is no mouseleave on touch devices so the selects stay open when you click a new one, or off the the select.

I fixed part of this with a simple hack: labelClick : function() { $(".gentleselect-dialog").fadeOut();

I have yet to figure a good way to hide the old dialogs when they are clicked off (as in the body is clicked), but its still early.

gcphost avatar Mar 15 '13 23:03 gcphost

Hi William,

If you set hideOnMouseOut to false, the dialog should hide once something is selected (instead of on mouse leave). Would that solve the problem?

shawnchin avatar Mar 20 '13 11:03 shawnchin

I think I tried it but I will try again and let you know.

On 20 March 2013 07:46, Shawn Chin [email protected] wrote:

Hi William,

If you set hideOnMouseOuthttp://shawnchin.github.com/jquery-gentleSelect/#option-mouseoutto false, the dialog would hide once something is selected (instead of on mouse leave). Would that solve the problem?

— Reply to this email directly or view it on GitHubhttps://github.com/shawnchin/jquery-gentleSelect/issues/6#issuecomment-15170705 .

gcphost avatar Mar 20 '13 15:03 gcphost

Hi

I just tested again and that setting did not make a difference.

That setting is only used when dialogHoverOut is called on mouseleave.

On 20 March 2013 11:01, Will Bowman [email protected] wrote:

I think I tried it but I will try again and let you know.

On 20 March 2013 07:46, Shawn Chin [email protected] wrote:

Hi William,

If you set hideOnMouseOuthttp://shawnchin.github.com/jquery-gentleSelect/#option-mouseoutto false, the dialog would hide once something is selected (instead of on mouse leave). Would that solve the problem?

— Reply to this email directly or view it on GitHubhttps://github.com/shawnchin/jquery-gentleSelect/issues/6#issuecomment-15170705 .

gcphost avatar Mar 21 '13 20:03 gcphost