scrollX property

int scrollX

The distance this window has been scrolled horizontally.

Other resources

Implementation

int get scrollX => JS<bool>('bool', '("scrollX" in #)', this)
    ? JS<num>('num', '#.scrollX', this).round()
    : document.documentElement.scrollLeft;