fix(FEC-9980): custom preset controls are continuously blinking on hovering the bottom bar #497
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Changes
Problem: Once the hovering timeout is done the shell is updating the store with
playerHover:false
which causes a renderer, but at this time the mouse is still hovering the shell so inonMouseOver
the shell is updating the store withplayerHover:true
, and so on for ever...(This reproduce in the preact version 8.x (current) only when custom preset is set, but in preactX even with our default presets)
Solution: remove the state updating from
onMouseOver
as it's redundant sinceonMouseMove
Solves: FEC-9980
CheckLists