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
c912ee23
Commit
c912ee23
authored
Oct 14, 2015
by
Viktor Lidholt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes touch handling in SpriteBox
parent
2032d3e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
flutter_sprites.dart
packages/flutter_sprites/lib/flutter_sprites.dart
+1
-0
sprite_box.dart
packages/flutter_sprites/lib/src/sprite_box.dart
+2
-2
No files found.
packages/flutter_sprites/lib/flutter_sprites.dart
View file @
c912ee23
...
@@ -14,6 +14,7 @@ import 'package:box2d/box2d.dart' as box2d;
...
@@ -14,6 +14,7 @@ import 'package:box2d/box2d.dart' as box2d;
import
'package:mojo/core.dart'
;
import
'package:mojo/core.dart'
;
import
'package:sky_services/media/media.mojom.dart'
;
import
'package:sky_services/media/media.mojom.dart'
;
import
'package:flutter/animation.dart'
;
import
'package:flutter/animation.dart'
;
import
'package:flutter/gestures.dart'
;
import
'package:flutter/painting.dart'
;
import
'package:flutter/painting.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
...
...
packages/flutter_sprites/lib/src/sprite_box.dart
View file @
c912ee23
...
@@ -185,11 +185,11 @@ class SpriteBox extends RenderBox {
...
@@ -185,11 +185,11 @@ class SpriteBox extends RenderBox {
}
}
}
}
void
handleEvent
(
ui
.
Event
event
,
_SpriteBoxHitTestEntry
entry
)
{
void
handleEvent
(
Input
Event
event
,
_SpriteBoxHitTestEntry
entry
)
{
if
(!
attached
)
if
(!
attached
)
return
;
return
;
if
(
event
is
ui
.
Pointer
Event
)
{
if
(
event
is
PointerInput
Event
)
{
if
(
event
.
type
==
'pointerdown'
)
{
if
(
event
.
type
==
'pointerdown'
)
{
// Build list of event targets
// Build list of event targets
...
...
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