Since upgrading to 8x.-1.20 I see hoverintent is now enabled for this module.

There doesn't appear to be an option for this anywhere.
I'd rather not build a module to disable this manually? Is there anything on the roadmap for this module to make this optional?

Comments

rjjakes created an issue. See original summary.

eme’s picture

Hi,

The initial patch had this option, but we want to keep Admin Toolbar plug-and-play. This functionnality seems crucial for me as when you loose focus you must start again and we had lots of complaints about it.

What disturbs you ? Maybe the delay could be adapted if it's too long ?

Regards,

eme’s picture

Please test against the dev version. Hover delay has been reduced.

rjjakes’s picture

@eme - I'm getting complaints for the same reason.
I'll try out the dev version.

rjjakes’s picture

Perhaps we could compromise? Keep the module plug and play with no admin options, but allow developers/sysadmins to set something in settings.local.php to disable the hoverintent if they wanted to?

rjjakes’s picture

StatusFileSize
new4.79 KB

I have included a patch that switches between using hoverIntent and pure jQuery hover using a settings switch:

$settings['admin_toolbar_disable_intent'] = TRUE;

rjjakes’s picture

Status: Active » Needs review
kopin’s picture

I agree on the long delay setting.

eme’s picture

In dev version, we reduced the delay to 250 instead of 500. Seems better to me.

adriancid’s picture

Title: How do I disable hoverintent? » Add a config to disable the hoverintent functionality
Status: Needs review » Reviewed & tested by the community

I test it and it works.

  • adriancid committed fa374ff on 8.x-1.x authored by rjjakes
    Issue #2908747 by rjjakes, eme, Kopin, adriancid: Add a config to...
adriancid’s picture

Status: Reviewed & tested by the community » Fixed

Thanks all for the work, at least we have the option now to use it or not :-)

eme’s picture

Status: Fixed » Active

Hello,

I think we shouldn't keep a config page only for that option. What we should do is disable the hover delay on mouse in and keep only on mouse out. I think that would fix the issue for everybody cleanly.

adriancid’s picture

Hi eme in order to try to release a new module version now that we have #2917704: Add Administration links access filter module as Admin Toolbar submodule what do you think that we need to made in this issue?

  • adriancid committed 9ad1e45 on 8.x-1.x
    Issue #2908747 by rjjakes, eme, adriancid, kopin: Add a config to...
adriancid’s picture

Well reverting the commit (manually, I'm tired to use a tool to fix conflicts now) as discuted by mail with eme and romainj is better to keep this plug and play, so @eme as you says JS is all yours :-)

mqanneh’s picture

Status: Active » Needs review

@adriancid I agree with you that such modules should be plug-and-play ones, but till this issue is fixed can we use the patch as a temporarily solution?

I needed the old patch in one of my projects so I re-rolled it to the latest dev version so I can include it in composer and my profile make files.

mqanneh’s picture

mqanneh’s picture

eme’s picture

Well, maybe we could just put the hoverIntent.js as a separate library so that you can in your theme or in a module remove it easily with no patch ?

For now we had more complaints about the subelements disappearing that the hover being too slow (now that we've but 250ms).

mattgross’s picture

Casting another vote for having a config page to toggle this on and off. The module works great as a plug and play, and having a config page with one option won't harm that, especially if hover intent is turned on by default, and has to be disabled.

That wouldn't be the end of the world for the people who don't like it, and wouldn't bother people who need it either.

chris matthews’s picture

Casting another vote for having a config page to toggle this on and off.

chris matthews’s picture

Version: 8.x-1.20 » 8.x-1.x-dev
Assigned: rjjakes » Unassigned
chris matthews’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
Status: Needs review » Needs work

After reading through this issue thread it appears as though the status should be needs work. Additionally, the issue should be on 8.x-2.x-dev.

romainj’s picture

IMHO I think that having a PHP settings to enable/disable such a feature isn't that great. That's basically a UI feature so it should not require to toggle a PHP settings.
I think that we should postpone this issue for now.

adriancid’s picture

Status: Needs work » Postponed
romainj’s picture

As https://www.drupal.org/project/admin_toolbar/issues/3094835 has been commited we could add this option. I will have a look soon and provide a patch.

romainj’s picture

Status: Postponed » Needs work
paulocs’s picture

Assigned: Unassigned » paulocs

I'll work on it.

paulocs’s picture

Assigned: paulocs » Unassigned
Status: Needs work » Needs review
StatusFileSize
new7.01 KB
romainj’s picture

Patch #30 works for me.

paulocs’s picture

Status: Needs review » Reviewed & tested by the community

So moving to RTBC per comment #31.
Thanks!

  • romainj committed 99c57c3 on 8.x-2.x authored by paulocs
    Issue #2908747 by rjjakes, mqanneh, paulocs, eme, adriancid, kopin: Add...
romainj’s picture

Commited to latest dev version.

romainj’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.