Title: [186877] trunk/Source/WebInspectorUI
- Revision
- 186877
- Author
- [email protected]
- Date
- 2015-07-15 17:33:33 -0700 (Wed, 15 Jul 2015)
Log Message
Web Inspector: Resizing TimelineRuler selection on both sides doesn't work with snapping enabled
https://bugs.webkit.org/show_bug.cgi?id=146970
Reviewed by Brian Burg.
* UserInterface/Views/TimelineRuler.js:
(WebInspector.TimelineRuler.prototype._handleSelectionHandleMouseMove):
Use snapped current time value when setting selection bounds.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (186876 => 186877)
--- trunk/Source/WebInspectorUI/ChangeLog 2015-07-16 00:31:19 UTC (rev 186876)
+++ trunk/Source/WebInspectorUI/ChangeLog 2015-07-16 00:33:33 UTC (rev 186877)
@@ -1,3 +1,14 @@
+2015-07-15 Matt Baker <[email protected]>
+
+ Web Inspector: Resizing TimelineRuler selection on both sides doesn't work with snapping enabled
+ https://bugs.webkit.org/show_bug.cgi?id=146970
+
+ Reviewed by Brian Burg.
+
+ * UserInterface/Views/TimelineRuler.js:
+ (WebInspector.TimelineRuler.prototype._handleSelectionHandleMouseMove):
+ Use snapped current time value when setting selection bounds.
+
2015-07-14 Nikita Vasilyev <[email protected]>
REGRESSION (r186698): Web Inspector: Frame selector is monospace again
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRuler.js (186876 => 186877)
--- trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRuler.js 2015-07-16 00:31:19 UTC (rev 186876)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRuler.js 2015-07-16 00:33:33 UTC (rev 186877)
@@ -782,6 +782,8 @@
var currentMousePosition = event.pageX - this._element.totalOffsetLeft;
var currentTime = this.startTime + (currentMousePosition * this.secondsPerPixel);
+ if (this.snapInterval)
+ currentTime = this._snapValue(currentTime);
if (event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
// Resize the selection on both sides when the Option keys is held down.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes