- 12 Jun, 2021 1 commit
-
-
Tong Mu authored
* Revert "Revert "MouseRegion enter/exit event can be triggered with button pressed (#81148)" (#81557)"
-
- 02 Jun, 2021 1 commit
-
-
Anis Alibegić authored
-
- 31 Mar, 2021 1 commit
-
-
Alexandre Ardhuin authored
-
- 12 Mar, 2021 1 commit
-
-
Tong Mu authored
-
- 17 Nov, 2020 1 commit
-
-
xubaolin authored
-
- 08 Oct, 2020 1 commit
-
-
Alexandre Ardhuin authored
* enable null_check_on_nullable_type_parameter and tighten_type_of_initializing_formals * fix CI
-
- 05 Oct, 2020 1 commit
-
-
Tong Mu authored
-
- 27 Aug, 2020 1 commit
-
-
Ian Hickson authored
-
- 20 Aug, 2020 1 commit
-
-
Tong Mu authored
* Redesigns the interface between MouseTracker and RendererBinding&RenderView. * Simplifies the structure of RenderMouseRegion. * Extracts the common utility code between mouse_tracker_test and mouse_tracker_cursor_test.
-
- 06 Aug, 2020 1 commit
-
-
Nolan Scobie authored
* Add punctuation for unterminated sentences in doc comments * Addressing review nit
-
- 28 Jul, 2020 1 commit
-
-
Michael Goderbauer authored
-
- 13 Jul, 2020 1 commit
-
-
Tong Mu authored
-
- 11 Jun, 2020 2 commits
-
-
Alexandre Ardhuin authored
* add language version 2.8 in packages/flutter * enable non-nullable analyzer flag
-
Darren Austin authored
-
- 14 May, 2020 1 commit
-
-
Tong Mu authored
* Uses a special cursor value MouseCursor.defer to mark deferring. MouseTrackerAnnotation.cursor is now non-null. The mouseCursor argument of widgets or render objects can be null, which indicates using the default value. * Moves SystemMouseCursors.uncontrolled to MouseCursor.uncontrolled. * Changes how MouseCursor.debugDescription is defined. Previously MouseCursor.toString returns $runtimeType($debugDescription), while now it returns $debugDescription. Implementations of classes are updated, except for the ones of MouseCursor.defer and MouseCursor.uncontrolled are simply "defer" and "uncontrolled".
-
- 11 May, 2020 1 commit
-
-
Tong Mu authored
Adds the basic framework for the mouse cursor system. * Adds MouseRegion.cursor * Adds SystemMouseCursors * Adds mouseCursor to some widgets
-
- 20 Mar, 2020 1 commit
-
-
Tong Mu authored
* Move mouse_tracking to rendering * Move test
-
- 11 Mar, 2020 1 commit
-
-
Greg Spencer authored
This converts Diagnosticable to be a mixin instead of an abstract class, so that it can be used to add diagnostics to classes which already have a base class. It leaves in place the DiagnosticableMixin mixin, since there are some plugins that are still using it, and removing it would mean that those plugins wouldn't work with master branch Flutter anymore. DiagnosticableMixin will be removed once this mixin version of Diagnosticable makes its way to the stable branch.
-
- 31 Jan, 2020 1 commit
-
-
Alexandre Ardhuin authored
-
- 28 Jan, 2020 2 commits
- 24 Jan, 2020 2 commits
-
-
Tong Mu authored
-
Alexandre Ardhuin authored
-
- 07 Jan, 2020 1 commit
-
-
Alexandre Ardhuin authored
-
- 19 Dec, 2019 3 commits
-
-
Alexandre Ardhuin authored
-
Lau Ching Jun authored
This reverts commit c235998a.
-
Alexandre Ardhuin authored
-
- 09 Dec, 2019 1 commit
-
-
Tong Mu authored
* Revert test pointer * Synthesize new state
-
- 05 Dec, 2019 1 commit
-
-
Tong Mu authored
-
- 03 Dec, 2019 1 commit
-
-
Dan Field authored
-
- 02 Dec, 2019 1 commit
-
-
Tong Mu authored
This PR rewrites MouseTracker's lifecycle, so that mouse callbacks are all triggered in post frame, instead of the current one where some are triggered during the build phase. This PR also changes the onExit callback to MouseRegion, RenderMouseRegion, and MouseTrackerAnnotation, so that it is no longer triggered on dispose.
-
- 27 Nov, 2019 1 commit
-
-
Ian Hickson authored
* Update project.pbxproj files to say Flutter rather than Chromium Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright. * Update the copyright notice checker to require a standard notice on all files * Update copyrights on Dart files. (This was a mechanical commit.) * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine. Some were already marked "The Flutter Authors", not clear why. Their dates have been normalized. Some were missing the blank line after the license. Some were randomly different in trivial ways for no apparent reason (e.g. missing the trailing period). * Clean up the copyrights in non-Dart files. (Manual edits.) Also, make sure templates don't have copyrights. * Fix some more ORGANIZATIONNAMEs
-
- 26 Nov, 2019 1 commit
-
-
Alexandre Ardhuin authored
* implicit-casts:false in flutter/lib/src/gestures * address review comments
-
- 18 Oct, 2019 1 commit
-
-
Tong Mu authored
* Replace hard break of Layer.find/All with findAllAnnotations * Deprecate findAll
-
- 11 Oct, 2019 1 commit
-
- 10 Oct, 2019 3 commits
-
-
Jonah Williams authored
-
Tong Mu authored
* Redesigns the algorithm with which MouseTracker keeps track of states and dispatches events.
-
Tong Mu authored
* Make sendMouseNotifications private
-
- 26 Sep, 2019 1 commit
-
-
Greg Spencer authored
This fixes the mouse hover code to not schedule frames with every mouse move. Before this, it would schedule a post frame callback, and then schedule a frame immediately, even if there was nothing that needed to be updated. Now it will schedule checks for mouse position updates synchronously, unless there's a new annotation, and skip scheduling a new frame in all cases. It has to be async in the case of a new annotation (i.e. a new MouseRegion is added), since when the annotation is added, it hasn't yet painted, and it can't hit test against the new layer until after the paint, so in that case it schedules a post frame callback, but since it's already building a frame when it does that, it doesn't need to schedule a frame. The code also used to do mouse position checks for all mice if only one mouse changed position. I fixed this part too, so that it will only check position for the mouse that changed.
-
- 30 May, 2019 1 commit
-
-
Greg Spencer authored
This PR solves two problems: currently, the onExit is called for a mouse pointer the moment the removal message is received, except that by the time it actually calls it, there is no _lastEvent for it in the mouse tracker (it's already been removed), resulting in an event being passed to the onExit that contains nulls for the position. Also, removePointer events don't actually get created with a position, although they easily could be, so that even the the _lastEvent in the mouse tracker were still populated, it would still give a null position and delta. This PR adds support for the position and delta in a PointerRemovedEvent, and populates them. In addition, when a remove event is received, it doesn't actually remove the pointer until the mouse position check that gets scheduled actually happens.
-