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

Unified Diff: components/exo/pointer.cc

Issue 2378773011: Only exclude workarea from touch-exploration with active shell-surface (Closed)
Patch Set: Created 4 years, 3 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
Index: components/exo/pointer.cc
diff --git a/components/exo/pointer.cc b/components/exo/pointer.cc
index 76d52427822487869dd85a7d15fb802fd22345d6..d94569139c79c207d710a86849100fc5046e6524 100644
--- a/components/exo/pointer.cc
+++ b/components/exo/pointer.cc
@@ -133,6 +133,9 @@ void Pointer::SetStylusDelegate(PointerStylusDelegate* delegate) {
void Pointer::OnMouseEvent(ui::MouseEvent* event) {
Surface* target = GetEffectiveTargetForEvent(event);
+ if (event->flags() & ui::EF_TOUCH_ACCESSIBILITY)
+ return;
+
auto new_pointer_type = pointer_type_;
if ((event->flags() & ui::EF_IS_SYNTHESIZED) == 0) {
new_pointer_type = event->pointer_details().pointer_type;

Powered by Google App Engine
This is Rietveld 408576698