Playhead seeks back to start on adding new layer via `Add layer` Button.
Steps to reproduce:
- Drag any clip to the timeline.
- Move Playhead to somewhere in between the clip.
- Now, click somewhere around the
Add layer
button or on it. - Notice the Playhead seeks back to start(0).
We want no seek to happen when we click outside the Layers
on the Timeline
, for that, we check if the clicked position is not the LayerControls
here. This works, but not for the Add layer
button as it's not of type LayerControls
, hence it allows it to perform seek.
The position being negative makes it seek to 0(start) of the timeline.