Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Unified Diff: third_party/WebKit/Source/core/input/MouseEventManager.cpp

Issue 2536083002: SelectionAutoscroll should not happen in user-select:none. (Closed)
Patch Set: Add test. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-user-select-none.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/MouseEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.cpp b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
index c38ab2fcb8db66b6adc03875a6e1446fdffb617a..aa178a3276abcdc653bc93d979c86176c10dbe98 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
@@ -733,7 +733,8 @@ WebInputEventResult MouseEventManager::handleMouseDraggedEvent(
m_mouseDownMayStartDrag = false;
if (m_mouseDownMayStartAutoscroll &&
- !m_scrollManager->middleClickAutoscrollInProgress()) {
+ !m_scrollManager->middleClickAutoscrollInProgress() &&
+ layoutObject->isSelectable()) {
bokan 2016/12/02 17:32:38 Selection is created/added by the call below to ha
sunyunjia 2016/12/04 22:46:43 Done.
if (AutoscrollController* controller =
m_scrollManager->autoscrollController()) {
controller->startAutoscrollForSelection(layoutObject);
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-user-select-none.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698