macOS: Avoid double-seeking to the same position
authorMarvin Scholz <epirat07@gmail.com>
Wed, 1 Feb 2017 10:57:55 +0000 (11:57 +0100)
committerMarvin Scholz <epirat07@gmail.com>
Wed, 1 Feb 2017 10:57:55 +0000 (11:57 +0100)
commit1fe7c233bf5fc86cafebaf658c7c6ea13b4dd3c9
treec0b36c19cc6a30bb3d130437cfc98b43d43be599
parentf117fee08d0764c7787ae47e0f50f902db4f7c15
macOS: Avoid double-seeking to the same position

The sliders for seeking are continuous, that means they send events
for every action, which is useful to seek when the slider is dragged.
But when the slider is clicked, this results in two seeks nearly at the
same time to the same position.
Therefore this commit introduces a check that ignores the slider update
if it originated from a NSLeftMouseUp event to workaround that.

Ref. #17954
modules/gui/macosx/VLCControlsBarCommon.m
modules/gui/macosx/VLCFSPanelController.m