Changeset 174972 in webkit
- Timestamp:
- Oct 21, 2014 9:28:34 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r174946 r174972 1 2014-10-21 Jer Noble <jer.noble@apple.com> 2 3 REGRESSION (r170808): Volume slider in built-in media controls only changes volume when thumb is released, not while dragging 4 https://bugs.webkit.org/show_bug.cgi?id=137805 5 6 Reviewed by Dan Bernstein. 7 8 * media/video-volume-slider-drag-expected.txt: Added. 9 * media/video-volume-slider-drag.html: Added. 10 1 11 2014-10-21 Manuel Rego Casasnovas <rego@igalia.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r174946 r174972 1 2014-10-21 Jer Noble <jer.noble@apple.com> 2 3 REGRESSION (r170808): Volume slider in built-in media controls only changes volume when thumb is released, not while dragging 4 https://bugs.webkit.org/show_bug.cgi?id=137805 5 6 Reviewed by Dan Bernstein. 7 8 Test: media/video-volume-slider-drag.html 9 10 Respond to the 'input' event rather than the 'change' event for the volume slider, so that 11 volume changes are continuous during drag operations. 12 13 Also listen for both 'input' and 'change' events for the timeline slider, doing fastSeek() 14 during 'input' and setting an explicit currentTime during 'change'. This is the same behavior 15 as current, but using 'change' instead of 'mouseup' to do the final currentTime change. 16 17 * Modules/mediacontrols/mediaControlsApple.js: 18 (Controller.prototype.createControls): 19 (Controller.prototype.handleTimelineInput): 20 (Controller.prototype.handleTimelineChange): 21 (Controller.prototype.handleTimelineMouseUp): 22 (Controller.prototype.handleVolumeSliderInput): 23 (Controller.prototype.handlePlayButtonClicked): Deleted. 24 (Controller.prototype.handleMaxButtonClicked): Deleted. 25 1 26 2014-10-21 Manuel Rego Casasnovas <rego@igalia.com> 2 27 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js
r174832 r174972 335 335 timeline.type = 'range'; 336 336 timeline.value = 0; 337 this.listenFor(timeline, 'input', this.handleTimelineChange); 337 this.listenFor(timeline, 'input', this.handleTimelineInput); 338 this.listenFor(timeline, 'change', this.handleTimelineChange); 338 339 this.listenFor(timeline, 'mouseover', this.handleTimelineMouseOver); 339 340 this.listenFor(timeline, 'mouseout', this.handleTimelineMouseOut); … … 386 387 volume.max = 1; 387 388 volume.step = .01; 388 this.listenFor(volume, ' change', this.handleVolumeSliderChange);389 this.listenFor(volume, 'input', this.handleVolumeSliderInput); 389 390 390 391 var captionButton = this.controls.captionButton = document.createElement('button'); … … 741 742 }, 742 743 744 handleTimelineInput: function(event) 745 { 746 this.video.fastSeek(this.controls.timeline.value); 747 }, 748 743 749 handleTimelineChange: function(event) 744 750 { 745 this.video. fastSeek(this.controls.timeline.value);751 this.video.currentTime = this.controls.timeline.value; 746 752 }, 747 753 … … 805 811 { 806 812 this.scrubbing = false; 807 808 // Do a precise seek when we lift the mouse:809 this.video.currentTime = this.controls.timeline.value;810 813 }, 811 814 … … 837 840 }, 838 841 839 handleVolumeSlider Change: function(event)842 handleVolumeSliderInput: function(event) 840 843 { 841 844 if (this.video.muted) {
Note: See TracChangeset
for help on using the changeset viewer.