diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-06-22 13:46:56 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-06-22 13:46:56 -0600 |
commit | 7e0f1869984b6ddcbc91b6a8d53dc54e177aca5d (patch) | |
tree | 3bba8f75709719bee60e8260b38bd96c15f67ddc /components/script/dom/browsercontext.rs | |
parent | c6ca389d546cbf3f3859a5549e3fc86d5381d680 (diff) | |
parent | 658df6047703aa24c88dacc0d17fe5076b778186 (diff) | |
download | servo-7e0f1869984b6ddcbc91b6a8d53dc54e177aca5d.tar.gz servo-7e0f1869984b6ddcbc91b6a8d53dc54e177aca5d.zip |
Auto merge of #6373 - robertknight:gh5660-rob-x11_scroll_speed, r=pcwalton
Use a faster scroll speed under X11
Platforms may report scroll deltas either in
chunks/lines/rows or pixels, depending on the
platform API and device capabilities.
If the platform reports a line/chunk-based delta
then the application needs to convert the delta
into a suitable number of pixels. Apple's documentation for example states
that the app should interpret the delta as a number of lines or rows to scroll,
depending on the type of view.
This commit just hardcodes it to 57 as
a starting point which matches the value that
Firefox calculates as the max char height
for the root frame on my system.
This depends on this Glutin PR: https://github.com/tomaka/glutin/pull/483
Fixes #5660
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6373)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/browsercontext.rs')
0 files changed, 0 insertions, 0 deletions