Skip to content

SwitchIndicator: Fix handle position binding, so that it feels snapped to pointer

ivan tkachenko requested to merge work/ratijas/switch-better-handle-x into master

This is an expression used in all upstream styles. Subtracting half of the handler's width makes it follow the pointer precisely, instead of wiggling left and right relative to the cursor.

Copied from qqc2-desktop-style implementation. See frameworks/qqc2-desktop-style!325 (merged)

Merge request reports