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

Unified Diff: Source/core/rendering/RenderTextControlSingleLine.cpp

Issue 15725009: Should be able to scroll text in <input> fields with touch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanup from initial CR Created 7 years, 7 months 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 | « Source/core/rendering/RenderBox.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderTextControlSingleLine.cpp
diff --git a/Source/core/rendering/RenderTextControlSingleLine.cpp b/Source/core/rendering/RenderTextControlSingleLine.cpp
index fd820ce6c4b1e807bf0c5cfaf0eec63ce775fddc..f256b19d44ae92585b53531c4ca231b200d0e252 100644
--- a/Source/core/rendering/RenderTextControlSingleLine.cpp
+++ b/Source/core/rendering/RenderTextControlSingleLine.cpp
@@ -452,8 +452,14 @@ bool RenderTextControlSingleLine::scroll(ScrollDirection direction, ScrollGranul
if (!renderer)
return false;
RenderLayer* layer = renderer->layer();
- if (layer && layer->scroll(direction, granularity, multiplier))
+
+ // Use the forced touch scroll method since the text control wont have scrollbars
+ if (layer && layer->touchScroll(direction, granularity, multiplier)) {
+ if (stopNode)
+ *stopNode = node();
+
return true;
+ }
return RenderBlock::scroll(direction, granularity, multiplier, stopNode);
}
« no previous file with comments | « Source/core/rendering/RenderBox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698