Dominic Gannaway
e0472709c8
[Flare] Adds Keyboard event responder ( #16204 )
2019-07-25 17:47:44 +01:00
Dominic Gannaway
5098891193
[Flare] Redesign core event system ( #16163 )
2019-07-23 23:46:44 +01:00
Nicolas Gallagher
bbd21066e6
[Flare] Press: fix keyboard interactions ( #16179 )
...
Prevents Spacebar from scrolling the window.
Prevents Enter from triggering a navigation if preventDefault is true.
Fixes the emulated mouse events test.
2019-07-22 18:16:40 -07:00
Dominic Gannaway
783b8f4ae1
[Flare] Ensure mouse events can use target to validate press ( #16172 )
2019-07-22 12:31:19 +01:00
Nicolas Gallagher
997154bcc7
[Flare] Add FocusWithin responder ( #16152 )
...
FocusWithin is implemented as a separate responder, which keeps both focus
responders simple and allows for easier composition of behaviours.
2019-07-17 15:17:13 -07:00
Dominic Gannaway
65b80fdd94
[Flare] Add Input event responder surface ( #16148 )
2019-07-17 21:04:41 +01:00
Nicolas Gallagher
ca4d78f9b6
[Flare] Press: fix middle-click handling ( #16114 )
...
Make sure the root events are removed after middle-click completes
2019-07-11 22:12:10 +01:00
Nicolas Gallagher
2073a7144e
[Flare] Press includes button type ( #16100 )
...
1. Allow auxillary button clicks (i.e., middle mouse button) to trigger 'onPressStart' and 'onPressEnd', but never 'onPress'.
2. Report the button type – 'primary' or 'auxillary' – on the press event.
2019-07-10 17:52:10 +01:00
Dominic Gannaway
23b8a25345
[Flare] Remove responder flags to simplify logic ( #16084 )
2019-07-09 15:05:45 +01:00
Dominic Gannaway
2253bc81d0
[Flare] Switch from currentTarget model to responderTarget model ( #16082 )
2019-07-08 17:03:15 +01:00
Dominic Gannaway
67e3f3fb6e
[Flare] Revise responder event types ( #16081 )
2019-07-08 14:35:59 +01:00
Dominic Gannaway
aa519c17cc
[Flare] Add currentTarget and unify RN and DOM codepaths ( #16066 )
2019-07-08 11:50:21 +01:00
Vincent Riemer
bd72b04939
[Flare] Clear pressStart timeout on pointercancel ( #16067 )
2019-07-05 11:45:33 +01:00
Dominic Gannaway
c40075a72c
[Flare] Remove capture phase Flare events ( #16054 )
2019-07-04 21:30:46 +01:00
Dominic Gannaway
786186c692
[Flare] createInitialState -> getInitialState ( #16051 )
2019-07-04 18:06:18 +01:00
Dominic Gannaway
6b946ad9da
[Flare] Add more functionality to Scroll event resonder ( #16036 )
2019-07-02 23:51:31 +01:00
Dominic Gannaway
6cf2234a57
[Flare] Do not block mouse presses on scroll ( #16033 )
2019-07-02 16:58:46 +01:00
Dominic Gannaway
eb2ace1281
[Flare] Bring Flare support to React Native Fabric ( #15887 )
2019-06-28 01:22:32 +01:00
Dominic Gannaway
9b0bd43550
[Flare] Re-label Flare flag ( #16014 )
2019-06-28 01:11:11 +01:00
Dominic Gannaway
8b88ac2592
[Flare] Remove event targets including TouchHitTarget ( #16011 )
2019-06-27 23:58:48 +01:00
Dominic Gannaway
824e9bec7a
[Flare] Fix issues with touch + pointer interactions ( #15997 )
2019-06-26 22:25:49 +01:00
Dominic Gannaway
dd93357aa0
[Flare] Move click handling back into target phase ( #15993 )
2019-06-26 20:44:44 +01:00
Andrew Clark
4d307de458
Prefix mock Scheduler APIs with _unstable ( #15999 )
...
For now this is only meant to be consumed via `act`.
2019-06-26 12:16:08 -07:00
Brandon Dail
9b55bcfc6b
[Flare] Add Hooks to event modules ( #15953 )
2019-06-26 08:47:21 +01:00
Dominic Gannaway
6088a201e1
[Flare] Fix Press scroll cancellation handling ( #15983 )
2019-06-25 14:31:48 +01:00
Dominic Gannaway
fd601fb219
[Flare] Move all event responders to dom directory ( #15981 )
2019-06-25 09:32:20 +01:00
Dominic Gannaway
20f3546963
[Flare] Ensure Press event hook does not execute side-effects ( #15976 )
2019-06-24 18:31:49 +01:00
Dominic Gannaway
34ce57ae75
[Flare] Refine flow type annotations ( #15950 )
2019-06-21 12:32:43 +01:00
Dominic Gannaway
4f92fbce5c
[Flare] Move createEvent back to React object ( #15943 )
2019-06-21 10:12:56 +01:00
Dominic Gannaway
720db4cbe6
[Flare] Add useEvent hook implementation ( #15927 )
...
* [Flare] Add useEvent hook implementation
Validate hooks have decendent event components
Few fixes and displayName changes
Fix more responder bugs
Update error codes
* Add another test
* Address feedback
2019-06-20 19:12:40 -07:00
Nicolas Gallagher
6ff4c9de1c
[Flare] Press: fix stale deactivation region state ( #15931 )
...
The responder region calculation logic wasn't updating the deactivation region
during the lifetime of an event instance, causing incorrect behaviour when the
current press ends outside the press target and if the press target has moved
since the last time the first-and-only time the deactivation region was
measured.
2019-06-20 17:10:54 -07:00
Dominic Gannaway
5368f7316c
[Flare] Fix keyboard keyup regression ( #15938 )
2019-06-20 17:00:09 +01:00
Dominic Gannaway
e61c9e0a26
[Flare] Fix Press retention state regression ( #15936 )
2019-06-20 13:01:56 +01:00
Dominic Gannaway
b62ae16429
[Flare] Rename createEventComponent -> createEvent ( #15929 )
2019-06-19 21:12:14 +01:00
Nicolas Gallagher
f4e1ac8caf
[Flare] Press events include defaultPrevented ( #15916 )
...
* Rename `disableContextMenu` to `preventContextMenu`
* Change the behaviour of `preventContextMenu` so that `onContextMenu` is still called when the native context menu is prevented.
2019-06-19 11:00:44 -07:00
Dominic Gannaway
689beef6f5
[Flare] Move unstable_createEventComponent to ReactDOM ( #15890 )
2019-06-18 23:41:00 +01:00
Nicolas Gallagher
f97b951666
[Flare] add disableContextMenu to Press ( #15909 )
2019-06-18 11:34:34 -07:00
Dominic Gannaway
353e0ee474
[Flare] remove stopLocalPropagation option + modify responder ownership ( #15889 )
2019-06-14 23:11:54 +01:00
Dominic Gannaway
a146c1f9ed
[Flare] Refactor of Press to fix various issues ( #15878 )
2019-06-14 22:52:26 +01:00
Dominic Gannaway
45acbdc0ba
[Flare] Unsure root events are removed on contextmenu ( #15862 )
2019-06-12 02:19:02 +01:00
Dominic Gannaway
c403ae4d35
[Flare] Move Press root event removal till click phase ( #15854 )
2019-06-10 19:08:53 +01:00
Dominic Gannaway
f4cd7a38d2
[Flare] Listen to document.body + add stopPropagation to Press ( #15853 )
2019-06-10 16:51:26 +01:00
Dominic Gannaway
425473f43f
[Flare] Improve runtime performance of hit target intersection ( #15836 )
2019-06-07 15:57:10 +01:00
Dominic Gannaway
8cfcfe0fcb
[Flare] Fix ES6 issues with IE11 ( #15834 )
2019-06-06 18:38:46 +01:00
Dominic Gannaway
73c27d8b49
[Flare] Add basic Scroll event responder module ( #15827 )
2019-06-05 18:20:34 +01:00
Dominic Gannaway
c72dceffbc
[Flare] Small Swipe/Drag fixes ( #15825 )
2019-06-05 17:51:41 +01:00
Andrew Clark
7b28ad119e
[Flare] EventPriority enum ( #15823 )
...
* Same as previous commit, but for Flare
I don't know what the public API for setting the event priority should
be. Right now it accepts a numeric enum, but is this what we want?
Maybe it should be a string enum? I've punted on this for now.
* Add test for hover events
2019-06-04 17:20:06 -07:00
Dominic Gannaway
cfb79ee5b3
[Flare] Fix isTouchEvent ( #15824 )
2019-06-04 23:58:11 +01:00
Dominic Gannaway
8d4fb132ef
[Flare] Fix nativeEvent.x/y for older browsers ( #15820 )
2019-06-04 20:58:20 +01:00
Dominic Gannaway
2534c0c924
[Flare] Add event position properties to Hover responder ( #15819 )
2019-06-04 18:10:15 +01:00