Fix Firefox and Vaadin 7 scroll distance (#11353)

Change-Id: I01be5ddfe0e266e4cb5b7e9872adaeaf0f745a84