angular_components icon indicating copy to clipboard operation
angular_components copied to clipboard

MaterialTab active element problem

Open alescdb opened this issue 6 years ago • 4 comments

Hi,

I found a small bug in Tabs, when I click on a tab (strip/panel) and maintain the left mouse button pressed and moving the mouse outside the tab the element stay active.

In case I don't make any sense, here is a small animation:

output

>dart --version
Dart VM version: 2.1.0-dev.9.1 (Unknown timestamp) on "linux_x64"
angular: ^5.1.0
angular_components: ^0.10.0

This is also happening in the gallery : https://dart-lang.github.io/angular_components/#/material_tab

alescdb avatar Nov 05 '18 11:11 alescdb

Are you saying that the tab will not change unless you click and release over a tab? That behavior seems pretty common in UI elements. Buttons usually don't trigger unless you click and release over them.

Do you see the same behavior on the "Write" and "Preview" tabs on this GitHub page when you are composing a reply?

nshahan avatar Nov 05 '18 17:11 nshahan

The css class active is set on all "grabbed" tabs, so in most case this is only visual. I'm not seeing this on github Write/Preview tabs (and the selected class stays on the selected tab).

On other tabs implementations I've tried (Angular TS, MaterializeCSS, bootstrap) the tab it drags with the mouse. The only one that behave like MaterialTab is paper-tabs (without visual "bug") : https://www.webcomponents.org/element/@polymer/paper-tabs/demo/demo/index.html

alescdb avatar Nov 05 '18 19:11 alescdb

Ahh ok! I see what you are describing now. Sorry about the confusion. Thanks for the report.

nshahan avatar Nov 05 '18 20:11 nshahan

The same happens with the buttons. They stay raised if the mouseup doesnt happen with the mouse on them

button active

luaVolk avatar Jan 08 '19 17:01 luaVolk