|
Improve Material ink effects
1) Factors InkWell out of Material so that components can use an ink well
without needing the shadow/level machinery.
2) Makes the ink effect move at a different velocity once the tap has actually
occurred, converging with the spec. We don't have the right speeds yet, but
at least we're approaching the right shape.
3) To support (2), added a primaryPointer attribute to GestureEvents to let
authors coorelate gesturetapdown events with later gesturetap events.
4) To support (2), modernized SplashAnimation to used AnimatedValue and friends.
5) Added more constants to view-configuration.dart that match Android.
I've also removed the cancelling of the ink effect on scroll. The proper way to
do that is to notice that someone in the event chain is listening for
scrollstart and delay the beginning of the ink effect for some period of time.
R=eseidel@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/6bedc53cb6045b98406cae563bf5d325d4bd5afc
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+126 lines, -148 lines) |
Patch |
|
M |
sky/engine/core/events/GestureEvent.h
|
View
|
|
3 chunks |
+3 lines, -0 lines |
1 comment
|
Download
|
|
M |
sky/engine/core/events/GestureEvent.cpp
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
sky/engine/core/events/GestureEvent.idl
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
sky/engine/public/platform/WebInputEvent.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
sky/examples/stocks-fn/lib/stock_row.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/ink_splash.dart
|
View
|
|
1 chunk |
+49 lines, -25 lines |
0 comments
|
Download
|
|
A + |
sky/framework/components/ink_well.dart
|
View
|
|
3 chunks |
+24 lines, -40 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/material.dart
|
View
|
|
3 chunks |
+5 lines, -68 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/menu_item.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/popup_menu_item.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/radio.dart
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
sky/framework/fn.dart
|
View
|
|
4 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
sky/framework/theme/view-configuration.dart
|
View
|
|
1 chunk |
+22 lines, -6 lines |
0 comments
|
Download
|
|
M |
sky/services/viewport/input_event.mojom
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
sky/shell/org/domokit/sky/shell/GestureProvider.java
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
sky/shell/ui/input_event_converter.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|