maui icon indicating copy to clipboard operation
maui copied to clipboard

[Windows] Set `CanDrag` and `AllowDrop` only if needed

Open MartyIX opened this issue 1 year ago • 3 comments

Description of Change

This PR makes it so that _container.CanDrag and _container.AllowDrop are not set unnecessarily. The PR assumes that most of UI elements are not draggable and droppable by default.

Speedscope

image

-> ~9% improvement

Issues Fixed

Contributes to #21787

MartyIX avatar May 24 '24 11:05 MartyIX

/azp run

jsuarezruiz avatar May 24 '24 11:05 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar May 24 '24 11:05 azure-pipelines[bot]

@jsuarezruiz Are the test failures real or not?

MartyIX avatar May 27 '24 08:05 MartyIX

@Foda Could you take a look please?

MartyIX avatar May 31 '24 06:05 MartyIX

@PureWeen is this good to merge?

MartyIX avatar Jun 01 '24 18:06 MartyIX