From e7a8dc3a2780d3b7f7eae8d97d33da5aacfb8528 Mon Sep 17 00:00:00 2001 From: Justin McCandless Date: Mon, 2 Dec 2024 09:45:36 -0800 Subject: [PATCH] iPad Scribble flicker and crash (#159508) Previously, dragging to select with an Apple Pencil on an iPad (Scribble) caused the context menu to rapidly hide and show. Sometimes this even caused an assertion error when using SystemContextMenu due to showing two context menus in one frame. After this PR, the flicker and crash are gone. The flicker happened on both the Flutter-rendered context menu and SystemContextMenu, but the error only happened with SystemContextMenu due to a safeguard that prevents two from showing at the same time. The flickering is likely a regression caused by https://github.com/flutter/flutter/pull/142463. | Before this PR | After this PR | | --- | --- | |