Skip to content

Updated itemIcon.ts mobile touch behavior#119

Open
Milky-way-Galaxy wants to merge 2 commits into
ShadowTheAge:mainfrom
Milky-way-Galaxy:main
Open

Updated itemIcon.ts mobile touch behavior#119
Milky-way-Galaxy wants to merge 2 commits into
ShadowTheAge:mainfrom
Milky-way-Galaxy:main

Conversation

@Milky-way-Galaxy
Copy link
Copy Markdown

Updates item icon controls to work better on mobile/touch devices.

Problem:

  • Desktop users can hover item icons to see the item/fluid name.
  • On mobile, hover is not available.
  • Long-press can trigger context menu / usage behavior instead of showing the tooltip.

Updated behavior:

  • Desktop hover: show tooltip/name
  • Desktop left click: production recipe
  • Desktop right click: usage recipe
  • Mobile tap: production recipe
  • Mobile double tap: usage recipe
  • Mobile hold: tooltip/name

This makes the calculator more usable on Android/mobile browsers while keeping the original desktop behavior.

@Milky-way-Galaxy
Copy link
Copy Markdown
Author

This should work on mobile much more consistently if no one accept this I'm gonna use the local version
Screenshot_2026-05-04-07-05-59-365_com android chrome

fixed the bug where you cant unshow the tooltip
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.

1 participant