MCPcopy Create free account
hub / github.com/cycfi/elements / scroll

Method scroll

lib/src/element/range_slider.cpp:140–225  ·  view source on GitHub ↗

since we only have a single scroll function to work with, we do it as follows: 1. if no thumbs are active, determine which is closest to the mouse i. store the initial mouse position ii. scroll the thumb 2. if a thumb is active: i. check if we are close to the initial mouse position iia. if so, scroll the thumb iib. if not, we assume it is a new separate scroll action and go back to 1.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

heightMethod · 0.80
includesMethod · 0.80
scroll_directionFunction · 0.50
widthMethod · 0.45
refreshMethod · 0.45

Tested by

no test coverage detected