Here is an oversimplified use of mousedown -> mousemove-> mouseup events chain: https://stackblitz.com/edit/rxjs-f4wjhz?file=index.ts. The actual code in my project contains much more, so I narrowed it down to the point where I need help with. In the code above, there's a repeat() operator at the end of the pipe. So basically this never ends, unless I use some operators which put a stop to this chain. Take a look at this Lockscreen example at https://stackblitz.com/edit/rxjs-lockscreen?file=index.ts. Here they've used both toArray and switchMap operators to check the selection against a predefined value. However, I don't have such case in my project.
Note: the chain shown in the Lockscreen example is pretty much close to what I have in my project, minus the predefined array of numbers.
Any idea on which operator (or combination of operators) to use here?