New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

material component button click behavior #561

Closed
phisch opened this Issue Jan 2, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@phisch
Copy link

phisch commented Jan 2, 2018

Summary

The material button component has a weird behavior when being drag-clicked. If you press and hold the mouse button on a button, then drag the mouse off the button and release the click, the button still fires the click event.

The default components used by jetbrains don't do that, they do not fire a click event after dragging and releasing off the button.

Expected behavior

No click fired.

Actual behavior

Click fired.

Steps to reproduce (if needed)

  1. open settings
  2. click and hold the left mouse button on "OK"
  3. drag the cursor off the button
  4. release the mouse click

-> settings window is now closed due to a fired click event on the "OK" button

material-button-click-event

Environment

PhpStorm 2017.3.2
Build #PS-173.4127.29
JRE: 1.8.0_152-release-1024-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.14.9-1-ARCH

Material Theme UI Version: 1.5.1.2

@mallowigi

This comment has been minimized.

Copy link
Collaborator

mallowigi commented Jan 2, 2018

I knew about this but I didn't know that the usual buttons don't do that.

I'll check

@mallowigi

This comment has been minimized.

Copy link
Collaborator

mallowigi commented Jan 2, 2018

Fixed on 1.5.2.2

@mallowigi mallowigi closed this Jan 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment