Skip to content

feature: For ft. DragTarget() component adds event throttling,Very important #6491

@Qye-Leisure

Description

@Qye-Leisure

Duplicate Check

Describe the requested feature

The dragging of the ft.Draggable() component is very smooth, but due to the communication latency between Python and Flutter, the data return of the on_move and on_accept events of the ft.DragTarget() component, as well as the on_drag_complete event of the ft.Draggable() component, suffers from very severe delays in complex page scenarios. This directly impairs the usability of the components. I hope to add throttling to the returned data of these events—for example, returning data every xx milliseconds—which can greatly improve the usability of the components. This provides a very powerful improvement for smooth usage. Ideally, the data return of the on_accept event should be isolated from the on_move event, because on_accept only needs to return data once, whereas on_move needs to return data in real time. Currently, the on_accept data return delay is very serious, and I suspect it is affected by the on_move delay.
This is a very important optimization, as it can deliver a very smooth experience with the simplest adjustment.

Suggest a solution

No response

Screenshots

No response

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestSuggestion/Request for additional feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions