DescriptionFix the issue with adding/removing event listeners for Device Motion/Orientation.
Make sure to only stop updating Device Motion/Orientation when
there are no event listeners. Currently Device Motion/Orientation
stops updating upon first event listener removal which is
problematic in case multiple event listeners are registered.
BUG=364491
TEST=Layout test and also http://jsbin.com/motion.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172165
Patch Set 1 #Patch Set 2 : similarity=80 #
Total comments: 13
Patch Set 3 : fixed comments #Patch Set 4 : added fix and test for device orientation #
Messages
Total messages: 10 (0 generated)
|