Created
April 22, 2015 10:42
-
-
Save pstjvn/dcb785401fb577d2b6f5 to your computer and use it in GitHub Desktop.
How I arrange items in class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PointerAgent.internal(): super.internal() { | |
_startPoint = new Point(0, 0); | |
_currentPoint = new Point(0, 0); | |
_lastPoint = new Point(0, 0); | |
_longPressDelay = new Delay(1500, _fireLongPress); | |
_raf = new AnimationFrame(mutate: (_) {_handleAnimationFrame(_);}); | |
_initEventListeners(); | |
} | |
AnimationFrame _raf; | |
Set<html.Element> _elements = new Set(); | |
Map<html.Element, Component> _elementToComponentMap = new Map(); | |
Map<html.Element, List<StreamSubscription>> _elementToSubscriptionsMap = new Map(); | |
Delay _longPressDelay; | |
bool _cancelMoveEvent = false; | |
List<StreamSubscription> _mouseMoveSubscriptionOnDocument; | |
html.Element _currentElement; | |
T _currentComponent; | |
SourceType _originalEventType = SourceType.UNKNOWN; | |
html.Element _sourceElement; | |
Point _startPoint; | |
Point _currentPoint; | |
Point _lastPoint; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment