I have a grid that I want to move. While I am just hanging and moving the mouse, I want the events to work, but when I click on the muscles, they should pause the shooting. As soon as I run mouseup, they should continue.
If it sounds super simple, it probably isn't. After a while, we came up with a not-so-elegant solution, but I wonder if something is better. I will not influence your approach with the help of our hack.
So, the initial code that does not work
mouseMove.TakeUntil(mouseDown).Repeat()
Adding .SkipUntil(mouseUp) left or right on TakeUntil completely stops the work on the code.
source share