The current implementation of the drag functionality in the TimeLine class is not working properly on Firefox. Specifically, the offsetX property is inconsistent and sometimes returns 0, which breaks the dragging behavior.
Current Behavior
Dragging works as expected in most browsers
In Firefox, dragging is inconsistent or doesn't work at all
Expected Behavior
Dragging should work consistently across all major browsers, including Firefox
The timeline should respond smoothly to drag operations regardless of the browser used
Proposed Solution
Replace the current drag implementation with a cross-browser compatible solution:
Use clientX instead of offsetX for tracking mouse movement
Update the moveListener and outsideListener to use the new mouse position calculation method
Description
The current implementation of the drag functionality in the
TimeLine
class is not working properly on Firefox. Specifically, theoffsetX
property is inconsistent and sometimes returns 0, which breaks the dragging behavior.Current Behavior
Expected Behavior
Proposed Solution
Replace the current drag implementation with a cross-browser compatible solution:
clientX
instead ofoffsetX
for tracking mouse movementmoveListener
andoutsideListener
to use the new mouse position calculation method