Changeset 28233 in webkit


Ignore:
Timestamp:
Nov 30, 2007 9:02:48 AM (16 years ago)
Author:
adele@apple.com
Message:

WebCore:

Reviewed by Darin.

Fix for http://bugs.webkit.org/show_bug.cgi?id=16072
<rdar://problem/5463821> REGRESSION: Mousemove event isn't fired when mouse moves over scrollbar with pressed button (16072)

Test: fast/events/mousemove-after-drag-over-scrollbar.html

  • page/EventHandler.cpp: (WebCore::EventHandler::handleMouseMoveEvent): If the mouse is pressed, and we've moved over a new scrollbar, then we can clear m_lastScrollbarUnderMouse. We should only need to show the hover effect when the mouse isn't pressed.

LayoutTests:

Reviewed by Darin.

Test for http://bugs.webkit.org/show_bug.cgi?id=16072
<rdar://problem/5463821> REGRESSION: Mousemove event isn't fired when mouse moves over scrollbar with pressed button

  • fast/events/mousemove-after-drag-over-scrollbar-expected.txt: Added.
  • fast/events/mousemove-after-drag-over-scrollbar.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r28232 r28233  
     12007-11-30  Adele Peterson  <adele@apple.com>
     2
     3        Reviewed by Darin.
     4
     5        Test for http://bugs.webkit.org/show_bug.cgi?id=16072
     6        <rdar://problem/5463821> REGRESSION: Mousemove event isn't fired when mouse moves over scrollbar with pressed button
     7
     8        * fast/events/mousemove-after-drag-over-scrollbar-expected.txt: Added.
     9        * fast/events/mousemove-after-drag-over-scrollbar.html: Added.
     10
    1112007-11-30  Alexey Proskuryakov  <ap@webkit.org>
    212
  • trunk/WebCore/ChangeLog

    r28228 r28233  
     12007-11-30  Adele Peterson  <adele@apple.com>
     2
     3        Reviewed by Darin.
     4
     5        Fix for http://bugs.webkit.org/show_bug.cgi?id=16072
     6        <rdar://problem/5463821> REGRESSION: Mousemove event isn't fired when mouse moves over scrollbar with pressed button (16072)
     7
     8        Test: fast/events/mousemove-after-drag-over-scrollbar.html
     9
     10        * page/EventHandler.cpp:
     11        (WebCore::EventHandler::handleMouseMoveEvent): If the mouse is pressed, and we've moved over a new scrollbar, then we can clear m_lastScrollbarUnderMouse.
     12         We should only need to show the hover effect when the mouse isn't pressed.
     13
    1142007-11-29  Brady Eidson <beidson@apple.com>
    215
  • trunk/WebCore/page/EventHandler.cpp

    r28227 r28233  
    10131013            if (m_lastScrollbarUnderMouse)
    10141014                m_lastScrollbarUnderMouse->handleMouseOutEvent(mouseEvent);
    1015             m_lastScrollbarUnderMouse = scrollbar;
     1015            m_lastScrollbarUnderMouse = m_mousePressed ? 0 : scrollbar;
    10161016        }
    10171017    }
Note: See TracChangeset for help on using the changeset viewer.