MCPcopy Create free account
hub / github.com/breck7/scroll / compensateForHScroll

Function compensateForHScroll

external/.scrollLibs.js:4342–4344  ·  view source on GitHub ↗
(display)

Source from the content-addressed store, hash-verified

4340 // but using getBoundingClientRect to get a sub-pixel-accurate
4341 // result.
4342 function compensateForHScroll(display) {
4343 return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left
4344 }
4345
4346 // Returns a function that estimates the height of a line, to use as
4347 // first approximation until the line becomes visible (and is thus

Callers 3

getDimensionsFunction · 0.85
alignHorizontallyFunction · 0.85
defineOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected