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)

贡献者指南