gabeklavans / word-hunt-online

2 stars 1 forks source link

Diagonal swipes are not registered properly in more recent updates #23

Open jh1923 opened 1 year ago

jh1923 commented 1 year ago

Summary

When adding a diagonally-adjacent letter to a word chain, the chain breaks when it is not intended to.

Environment(s)

Steps to Reproduce

  1. Start a game of Word Hunt Online.
  2. Attempt to create a word chain by swiping diagonal inputs.

Expected Result: The letter is added to the word chain. Actual Result: The letter is not added to the word chain, and the chain breaks, forcing the player to start another chain.

Visual Example

Attempting to write "TAZE" (not a valid word, but shows the diagonal swipe issue when moving from A to Z and Z to E)

https://github.com/gabeklavans/gamejay-bot/assets/42978576/bb9f31dc-2e2e-49d4-8c8d-315dd3f9891f

gabeklavans commented 1 year ago

I suspect it's to do with the scaling up effect when dragging over a letter tile. It might also be growing its hitbox.

gabeklavans commented 1 year ago

Verify that https://github.com/gabeklavans/word-hunt-online/commit/b70b5d9f07e069375e3de64089aead39aece46a8 (now pushed to prod) fixes this