Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
12097bdd
Commit
12097bdd
authored
Sep 22, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove uses of sky.GestureEvent
parent
051354ae
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
31 deletions
+8
-31
sky_binding.dart
packages/flutter/lib/src/rendering/sky_binding.dart
+0
-2
ink_well.dart
packages/flutter/lib/src/widgets/ink_well.dart
+7
-5
scrollable.dart
packages/flutter/lib/src/widgets/scrollable.dart
+1
-1
mock_events.dart
packages/unit/test/engine/mock_events.dart
+0
-23
No files found.
packages/flutter/lib/src/rendering/sky_binding.dart
View file @
12097bdd
...
...
@@ -96,8 +96,6 @@ class SkyBinding extends HitTestTarget {
void
_handleEvent
(
sky
.
Event
event
)
{
if
(
event
is
sky
.
PointerEvent
)
{
_handlePointerEvent
(
event
);
}
else
if
(
event
is
sky
.
GestureEvent
)
{
dispatchEvent
(
event
,
hitTest
(
new
Point
(
event
.
x
,
event
.
y
)));
}
else
{
for
(
EventListener
listener
in
_eventListeners
)
listener
(
event
);
...
...
packages/flutter/lib/src/widgets/ink_well.dart
View file @
12097bdd
...
...
@@ -82,13 +82,15 @@ class RenderInkWell extends RenderProxyBox {
final
List
<
InkSplash
>
_splashes
=
new
List
<
InkSplash
>();
void
handleEvent
(
sky
.
Event
event
,
BoxHitTestEntry
entry
)
{
if
(
event
is
sky
.
GestureEvent
)
{
// TODO(abarth): We should trigger these effects based on gestures.
// https://github.com/flutter/engine/issues/1271
if
(
event
is
sky
.
PointerEvent
)
{
switch
(
event
.
type
)
{
case
'
gesturetap
down'
:
_startSplash
(
event
.
p
rimaryP
ointer
,
entry
.
localPosition
);
case
'
pointer
down'
:
_startSplash
(
event
.
pointer
,
entry
.
localPosition
);
break
;
case
'
gestureta
p'
:
_confirmSplash
(
event
.
p
rimaryP
ointer
);
case
'
pointeru
p'
:
_confirmSplash
(
event
.
pointer
);
break
;
}
}
...
...
packages/flutter/lib/src/widgets/scrollable.dart
View file @
12097bdd
...
...
@@ -19,7 +19,7 @@ import 'package:sky/src/widgets/mixed_viewport.dart';
export
'package:sky/src/widgets/mixed_viewport.dart'
show
MixedViewportLayoutState
;
// The
GestureEvent
velocity properties are pixels/second, config min,max limits are pixels/ms
// The
gesture
velocity properties are pixels/second, config min,max limits are pixels/ms
const
double
_kMillisecondsPerSecond
=
1000.0
;
const
double
_kMinFlingVelocity
=
-
kMaxFlingVelocity
*
_kMillisecondsPerSecond
;
const
double
_kMaxFlingVelocity
=
kMaxFlingVelocity
*
_kMillisecondsPerSecond
;
...
...
packages/unit/test/engine/mock_events.dart
View file @
12097bdd
...
...
@@ -59,29 +59,6 @@ class TestPointerEvent extends sky.PointerEvent {
double
tilt
;
}
class
TestGestureEvent
extends
sky
.
GestureEvent
{
TestGestureEvent
({
this
.
type
,
this
.
primaryPointer
,
this
.
x
,
this
.
y
,
this
.
dx
,
this
.
dy
,
this
.
velocityX
,
this
.
velocityY
});
// These are all of the GestureEvent members, but not all of Event.
String
type
;
int
primaryPointer
;
double
x
;
double
y
;
double
dx
;
double
dy
;
double
velocityX
;
double
velocityY
;
}
class
TestPointer
{
TestPointer
([
this
.
pointer
=
1
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment