ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.48k stars 803 forks source link

Button hover state not properly updated when using touch #5553

Open NewhereDigitalToys opened 2 years ago

NewhereDigitalToys commented 2 years ago

Describe the bug

Repost from Discord

Dealing with the button hover state, everything works the way it is suppose to on PC for newer version of ruffle nightly 10/26/2021 (except for as I said before with fullscreen mode in new version of ruffle). And on Smart phones and tablets, it don't (but in older versions of ruffle it all worked perfectly by default on 4/18/2021 nightly)

Attached is a picture to show what I am talking about: image

Expected behavior

Everything is explained in "Describe the bug"

Affected platform

Self-hosted version

Operating system

Windows XP, Windows Vista, Windows 8, Windows 8.1, Windows 10, Android 8.1.0, Android 9, Android 11

Browser

Latest versions of Mozilla Firefox, Google Chrome, Puffin Web Browser

Additional information

See it for yourself here dealing with it on PC, Smart phones or Tablets: https://newheredigitaltoys.xyz/

Herschel commented 2 years ago

Thanks for the report. We aren't firing the appropriate rollOut event for the previously hovered object when using touch. Here's a simple example:

button.zip

https://user-images.githubusercontent.com/36278/139347472-9b2aa68e-2d99-4f17-b18f-35cca208ccb8.mp4

NewhereDigitalToys commented 2 years ago

Ah I see.....Yeah the parameters being used in the website .swf file is based on the regular standard stuff in the software for mouse cursor hovering "over":

image