Reset touch action at TouchActionFilter's constructor
When we start processing a gesture event, the OnHasTouchEventHandler(false) IPC message may not yet be received which means the |scrolling_touch_action_| has no value and that results a crash. This CL fixes the problem by call ResetTouchAction() in TouchActionFilter's constructor. At that moment, the |has_touch_event_handler_| is default to false which will set both |allowed_touch_action_| and |scrolling_touch_action_| to Auto. Bug: 850238, 851644 Change-Id: I36f3edf2b9292347f184458aa059904af1a2f597 Reviewed-on: https://chromium-review.googlesource.com/1180592 Commit-Queue: Xida Chen <xidachen@chromium.org> Reviewed-by:Robert Flack <flackr@chromium.org> Reviewed-by:
Dave Tapuska <dtapuska@chromium.org> Cr-Commit-Position: refs/heads/master@{#585234}
Showing
Please register or sign in to comment