Skip to content

Fix hover on touch devices - #1526

Merged
DreadKnight merged 2 commits into
FreezingMoon:masterfrom
TheSeally:fixHoverOnTouchDevices
May 15, 2019
Merged

Fix hover on touch devices#1526
DreadKnight merged 2 commits into
FreezingMoon:masterfrom
TheSeally:fixHoverOnTouchDevices

Conversation

@TheSeally

Copy link
Copy Markdown
Contributor

Fix #1506

  1. Add hover class
  • change implementation of hovering button from CSS hover to hover class
  • add new property to Button class constructor which shows is shortcut needed
  • add default behaviour for buttons with shortcuts
  1. Add touch functionality
  • add touchstart and touchend function;
  • when player touch button and after it move finger more than 50px click event doesn't happen

TheSeally added 2 commits May 13, 2019 23:36
* change implementation of hovering button from CSS hover to hover class
* add new property to Button class constructor which shows is shortcut needed
* add default behaviour for buttons with shortcuts
* add `touchstart` and `touchend` function;
* if player touch button and after it move finger more than 50px `click` event doesn't happen
@DreadKnight

Copy link
Copy Markdown
Member

@TheSeally Great job, this really makes the difference!
Only one thing could improve this imo, but I've opened a different issue for it #1527

@DreadKnight
DreadKnight merged commit 2c1f3ea into FreezingMoon:master May 15, 2019
@TheSeally

Copy link
Copy Markdown
Contributor Author

Thank you for the opportunity to participate in opensource project. I'm glad to help your project.
I try to take issue #1527 later

@DreadKnight

Copy link
Copy Markdown
Member

Cool, if you can manage that issue as well, awesome! Otherwise there are plenty of other open issues that I greatly struggle with as a crappy coder that I am :D

CyberBishop pushed a commit to CyberBishop/AncientBeast that referenced this pull request Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bad tooltip display

2 participants