Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug: GestureDetector with drag event have big latency

オープン
#6,506 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
flutter, python

調査の方向性

まず、Windows 10 上で Flet 0.85.1 を使用して Python GestureDetector ドラッグの例を再現し、観測されたレイテンシを期待される滑らかな動きと比較します。issue にはソースファイルもテストも指定されていないため、GestureDetector のドラッグ更新パスを追跡し、遅延が発生している箇所を特定します。ドラッグの更新で目に見える遅延がなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Duplicate Check
Describe the bug

https://github.com/user-attachments/assets/f55f06bd-bbeb-4838-8c02-a02e1d270dc2

Code sample
Code
    def on_horizontal_drag_update(e: ft.DragUpdateEvent):
        control = e.control
        if not control: return

        wavewaveform_container.left += e.local_delta.x
        # wavewaveform_container.update()


    outer_container = ft.Container(
        width=640,
        height=80,
        bgcolor=ft.Colors.GREY_200,
        border=ft.Border.all(2, ft.Colors.RED),
        content=ft.Stack(
            [wavewaveform_container],
            expand=True
        )
    )

    gesture_detector = ft.GestureDetector(
        mouse_cursor=ft.MouseCursor.MOVE,
        on_horizontal_drag_update=on_horizontal_drag_update,
        content=outer_container
    )
To reproduce

very basic mechanic

Expected behavior

no latency/lagging

Screenshots / Videos
Operating System

Windows

Operating system details

10

Flet version

Name: flet Version: 0.85.1

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

No response

Additional details

No response

主要言語
Python
スター
17.1k
フォーク
708
平均マージ
1日 17時間
マージ済み PR(30日)
46

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

flet-dev/flet のほかの issue

flet-dev/flet の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。