You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example, every time you hover over the element, the camera is scrolled down a bit, so you can eventually see the hit area move above the image
Additional Information
The text was updated successfully, but these errors were encountered:
pinkkis
changed the title
hitArea inside container moves even when container has scrollFactor(0)
hitArea inside container scrolls even when container has scrollFactor(0)
Apr 9, 2019
I've looked through your example and found out that manually setting sprite.setScrollingFactor(0) solves your problem, so it can be used as a workaround. Also, it was not mentioned in the documentation that setting scrollfactor on container sets it on its children (link) so it may be a result of misunderstanding of docs
Version
Description
-> element stays in place, but interactive hitarea has scrolled with camera movement
Example Test Code
Here's a quick example:
https://jsbin.com/jizijaqote/edit?js,output
In the example, every time you hover over the element, the camera is scrolled down a bit, so you can eventually see the hit area move above the image
Additional Information
The text was updated successfully, but these errors were encountered: