slint-ui/slint

Distinguish between touch and mouse to pan the Flickable

已關閉

#4,352 建立於 2024年1月16日

 (3 則留言) (2 個反應) (0 位負責人)Rust (881 個分叉)batch import
a:flickablegood first issue

倉庫指標

星標
 (22,596 顆星)
PR 合併指標
 (平均合併 4天 18小時) (30 天內合併 254 個 PR)

描述

Currently, Flickable::interactive means that you can pan it with the mouse press and drag. It is always possible to pan it with the mouse wheel. We should in fact make sure that you can always pan it with touch event even when interactive is false.

perhaps interactive property should be deprecated and renamed something like pan-with-mouse. Alternative is an interaction mode enum that can be None, Normal, WithMouse.

(Relates a bit to https://github.com/slint-ui/slint/issues/2260)

貢獻者指南