ermouth / couch-photon

An alternative CouchDB admin panel
MIT License
87 stars 12 forks source link

Tab click waiting for css transition? #1

Closed johs closed 7 years ago

johs commented 7 years ago

Occationally, first click on top tabs don't work. I see there is a css transition going on and maybe it is linked to that? To test it, move cursor very quickly in and click. Tested on MacOS 10.12.5 w/ Chrome, Vivaldi, Safari, Firefox

ermouth commented 7 years ago

Ah, pretty interesting. The reason is your cursor is actually still moving at the moment of the click. Since tabs are draggable your action assumed as just started drag, that immediately finishes.

Good catch, and easy to fix: jQ UI Sortable has the delay param http://api.jqueryui.com/sortable/#option-delay, which I definitely forgot to set properly.

ermouth commented 7 years ago

Seems I fixed, please update from the repo.