Skip to content

only allow root layer to overscroll - #436

Closed
gterzian wants to merge 1 commit into
servo:masterfrom
gterzian:prevent_non_root_layer_overscroll
Closed

gterzian wants to merge 1 commit into
servo:masterfrom
gterzian:prevent_non_root_layer_overscroll

Conversation

@gterzian

@gterzian gterzian commented Oct 9, 2016 •

Copy link
Copy Markdown
Member

WIP for servo/servo#13249


This change is Reviewable

Comment thread webrender/src/frame.rs Outdated
true
} else {
false
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of returning true or false, you can simply return:
overscroll_amount.width != 0.0 || overscroll_amount.height != 0.0

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KiChjang cheers! 👍

@gterzian
gterzian force-pushed the prevent_non_root_layer_overscroll branch 2 times, most recently from 2bdabed to f77e258 Compare October 9, 2016 10:46
@gterzian
gterzian force-pushed the prevent_non_root_layer_overscroll branch from f77e258 to 9395f46 Compare October 15, 2016 10:07
@gterzian

Copy link
Copy Markdown
Member Author

Closing, in favor of #465

@gterzian gterzian closed this Oct 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants