Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flutter/engine
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ad1343c
Choose a base ref
...
head repository: flutter/engine
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0d93da7
Choose a head ref
  • 9 commits
  • 7 files changed
  • 2 contributors

Commits on Jun 28, 2024

  1. Configuration menu
    Copy the full SHA
    e6fb48a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40153cc View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2024

  1. Configuration menu
    Copy the full SHA
    eb0b7f2 View commit details
    Browse the repository at this point in the history
  2. [web] Fixes drag scrolling in embedded mode. (#53647)

    When Flutter web runs embedded in a page, scrolling by dragging is interrupted very early by the browser.
    
    It turns out that our `pointer` events receive a `pointercancel` + `pointerleave` by the browser because they happen in an area (the flutter glasspane) that is not really scrollable. [See documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/pointercancel_event).
    
      > [!NOTE]
      > After the pointercancel event is fired, the browser will also send [pointerout](https://developer.mozilla.org/en-US/docs/Web/API/Element/pointerout_event) followed by [pointerleave](https://developer.mozilla.org/en-US/docs/Web/API/Element/pointerleave_event).
    
    (Firefox is a good browser to test this, because the browser will cancel our events **only if there's scrollable areas around the embedded flutter app**.)
    
    There's several solutions, but one of them (used by PixiJS as well) is to cancel the `touchstart` event that fires with the `pointerdown` event.
    
    (This PR also removes an unnecessary call to `addEventListener` in the `Listener` helper class, and adds some testing to it).
    
    ## Testing
    
    * Added a happy case test for the fix (preventDefault on 'touchstart' events)
    * Deployed demo app here: https://dit-multiview-scroll.web.app
    
    ## Issues
    
    * Fixes flutter/flutter#138985
    * Fixes flutter/flutter#146732
    * Related to flutter/flutter#139263
    
    [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
    ditman authored Jun 29, 2024
    Configuration menu
    Copy the full SHA
    f6004b9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c9047ce View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2d130cf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    97b64a0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    234e31c View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2024

  1. Configuration menu
    Copy the full SHA
    0d93da7 View commit details
    Browse the repository at this point in the history
Loading