Web Inspector: timeline. Range selection works incorrect with right click
authorcaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 17:25:26 +0000 (17:25 +0000)
committercaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 17:25:26 +0000 (17:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=83870

Reviewed by Pavel Feldman.

- only start window dragging upon mousedown with left button (right will cause a context menu and we won't see mouseup)

* inspector/front-end/TimelineOverviewPane.js:
(WebInspector.TimelineOverviewWindow.prototype._dragWindow):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114272 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/TimelineOverviewPane.js

index 2bfea79..ba8a4af 100644 (file)
@@ -1,3 +1,34 @@
+2012-04-16  Andrey Kosyakov  <caseq@chromium.org>
+
+        Web Inspector: timeline. Range selection works incorrect with right click
+        https://bugs.webkit.org/show_bug.cgi?id=83870
+
+        Reviewed by Pavel Feldman.
+
+        - only start window dragging upon mousedown with left button (right will cause a context menu and we won't see mouseup)
+
+        * inspector/front-end/TimelineOverviewPane.js:
+        (WebInspector.TimelineOverviewWindow.prototype._dragWindow):
+
+2012-04-16  Andrey Kosyakov  <caseq@chromium.org>
+
+        Web Inspector: touch pad is pain to use in lower pane of Timeline panel due two two-axis scrolling
+        https://bugs.webkit.org/show_bug.cgi?id=83946
+
+        Reviewed by Pavel Feldman.
+
+        Remove delegation of mousewheel events from lower timeline pane to the timeline overview. This disables
+        support for moving overview window with horizontal swype over lower timeline pane, thus removing
+        an irritating situation when we try to both change overview window and scroll lower timeline pane
+        upon a single touchpad gesture. Those willing to move timeline window now would need to position
+        mouse over overview.
+
+        * inspector/front-end/TimelineOverviewPane.js:
+        (WebInspector.TimelineOverviewWindow.prototype._onMouseWheel):
+        (WebInspector.TimelineOverviewWindow.prototype._zoom):
+        * inspector/front-end/TimelinePanel.js:
+        (WebInspector.TimelinePanel):
+
 2012-04-16  Yury Semikhatsky  <yurys@chromium.org>
 
         Web Inspector: rename heap profiler files and classes DetailedHeapshot* ->HeapSnapshot*
index 77a2d49..2573026 100644 (file)
@@ -464,6 +464,9 @@ WebInspector.TimelineOverviewWindow.prototype = {
 
     _dragWindow: function(event)
     {
+        // Only drag upon left button. Right will likely cause a context menu.
+        if (event.button)
+            return;
         var node = event.target;
         while (node) {
             if (node.hasStyleClass("resources-dividers-label-bar")) {