Bug 1644381. Remove listener in nsSliderFrame. r=kats

Differential Revision: https://phabricator.services.mozilla.com/D78882
This commit is contained in:
Timothy Nikkel 2020-06-09 13:40:27 +00:00
parent 019a9e6e18
commit ec7f81e276

View File

@ -1170,6 +1170,8 @@ void nsSliderFrame::RemoveListener() {
thumbFrame->GetContent()->RemoveSystemEventListener(
NS_LITERAL_STRING("mousedown"), mMediator, false);
thumbFrame->GetContent()->RemoveSystemEventListener(
NS_LITERAL_STRING("touchstart"), mMediator, false);
}
bool nsSliderFrame::ShouldScrollForEvent(WidgetGUIEvent* aEvent) {