Browse Source

Dont' scroll the slider if the futureSliderView is hidden.

pull/92/head
Abhishek 4 years ago
parent
commit
a0f54f3540
  1. 9
      Clocker/Panel/PanelController.swift

9
Clocker/Panel/PanelController.swift

@ -363,8 +363,13 @@ class PanelController: ParentPanelController {
Logger.log(object: nil, for: "Scroll Event Ended") Logger.log(object: nil, for: "Scroll Event Ended")
} }
futureSlider.doubleValue += Double(event.scrollingDeltaX) // We only want to move the slider if the slider is visible.
sliderMoved(futureSlider!) // If the parent view is hidden, then that doesn't automatically mean that all the childViews are also hidden
// Hence, check if the parent view is totally hidden or not..
if futureSliderView.isHidden == false {
futureSlider.doubleValue += Double(event.scrollingDeltaX)
sliderMoved(futureSlider!)
}
} }
} }

Loading…
Cancel
Save