ocadotechnology / rapid-router

A Blockly and python based educational game aimed at students age 5-14.
https://www.codeforlife.education
Other
57 stars 81 forks source link

invalid cow squares remain highlighted #1643

Open evemartin opened 5 months ago

evemartin commented 5 months ago

Describe the bug Sometimes after a cow is placed on an invalid square, the square remains highlighted when the user moves their mouse away.

To Reproduce Steps to reproduce the behaviour:

  1. Go to Level Editor
  2. Add a cow to the grid and drag it to be right on the leftmost edge of an invalid square (see screenshot)
  3. Drop the cow in that position and move your mouse away to the left, i.e. do not move your mouse over the square
  4. Notice that the square stays highlighted white when it should not be highlighted at all
  5. Bonus: when you move your mouse over and off the highlighted square, only then does it unhighlight

Expected behaviour The cow square should unhighlight as soon as the cow is dropped

Screenshots Screenshot from 2024-06-06 14-21-44

RaihanRasheedApurbo commented 1 week ago

FYI: I am working on a fix on this.