Changeset 183971 in webkit
- Timestamp:
- May 7, 2015, 6:55:08 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Modules/mediacontrols/mediaControlsApple.js (modified) (1 diff)
-
Modules/mediacontrols/mediaControlsiOS.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r183970 r183971 1 2015-05-07 Dean Jackson <dino@apple.com> 2 3 [iOS] MediaControls: disappear while scrubbing 4 https://bugs.webkit.org/show_bug.cgi?id=144777 5 <rdar://problem/20065572> 6 7 Reviewed by Eric Carlson. 8 9 If we are scrubbing we shouldn't hide the controls. 10 11 * Modules/mediacontrols/mediaControlsApple.js: 12 (Controller.prototype.hideControls): Return early if we are scrubbing. 13 * Modules/mediacontrols/mediaControlsiOS.js: 14 (ControllerIOS.prototype): Add initial value for _potentiallyScrubbing and 15 rename from non-underscored value throughout the file. 16 (ControllerIOS.prototype.handleTimelineTouchEnd): When we finish scrubbing, reset 17 the timer to hide the controls. 18 1 19 2015-05-07 Simon Fraser <simon.fraser@apple.com> 2 20 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js
r183953 r183971 1363 1363 hideControls: function() 1364 1364 { 1365 if (this.controlsAlwaysVisible() )1365 if (this.controlsAlwaysVisible() || this._potentiallyScrubbing) 1366 1366 return; 1367 1367 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js
r183965 r183971 17 17 this._timelineIsHidden = false; 18 18 this._currentDisplayWidth = 0; 19 this._potentiallyScrubbing = false; 19 20 this.scheduleUpdateLayoutForDisplayedWidth(); 20 21 … … 494 495 495 496 handleTimelineInput: function(event) { 496 if (this. potentiallyScrubbing)497 if (this._potentiallyScrubbing) 497 498 this.video.pause(); 498 499 Controller.prototype.handleTimelineInput.call(this, event); … … 505 506 506 507 handleTimelineTouchStart: function(event) { 507 this. potentiallyScrubbing = true;508 this._potentiallyScrubbing = true; 508 509 this.wasPlayingWhenScrubbingStarted = !this.video.paused; 509 510 this.listenFor(this.controls.timeline, 'touchend', this.handleTimelineTouchEnd); … … 514 515 this.stopListeningFor(this.controls.timeline, 'touchend', this.handleTimelineTouchEnd); 515 516 this.stopListeningFor(this.controls.timeline, 'touchcancel', this.handleTimelineTouchEnd); 516 this. potentiallyScrubbing = false;517 if (this.wasPlayingWhenScrubbingStarted && this.video.paused) 517 this._potentiallyScrubbing = false; 518 if (this.wasPlayingWhenScrubbingStarted && this.video.paused) { 518 519 this.video.play(); 520 this.resetHideControlsTimer(); 521 } 519 522 }, 520 523
Note:
See TracChangeset
for help on using the changeset viewer.