Refined-github: Close dropdowns when they scroll out of view

Created on 28 Oct 2017  路  3Comments  路  Source: sindresorhus/refined-github

From https://github.com/sindresorhus/refined-github/pull/735#issuecomment-340138827

Can use IntersectionObserver.

enhancement help wanted

Most helpful comment

Specifically, because of my workflow when reviewing (described here: https://github.com/sindresorhus/refined-github/pull/735#issuecomment-339183475) I'd prefer not to do that.

Even though it sounds nice, clicking somewhere to close is easy and I want to keep it explicit for the review dropdown. If you this could be done for other dropdowns, but not for the review dropdown, I'm fine with it.

All 3 comments

Specifically, because of my workflow when reviewing (described here: https://github.com/sindresorhus/refined-github/pull/735#issuecomment-339183475) I'd prefer not to do that.

Even though it sounds nice, clicking somewhere to close is easy and I want to keep it explicit for the review dropdown. If you this could be done for other dropdowns, but not for the review dropdown, I'm fine with it.

I agree it would be annoying for the review dropdown, but for the other ones, I think it's ok.

Hi all, I've got a working version of this new feature here: https://github.com/tom-sherman/refined-github/tree/close-out-of-view-dropdowns

It currently only works on some dropdowns, namely ones that use details elements. I'll submit a PR when I have all of the dropdowns working 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pawelad picture pawelad  路  3Comments

hkdobrev picture hkdobrev  路  3Comments

juliocanares picture juliocanares  路  3Comments

mareksuscak picture mareksuscak  路  3Comments

durka picture durka  路  3Comments