scroll: use wheelpropagation. Ref #10772

Once the vertical scrollbar comes to its end position, it should
allow the page scroll bar to start scrolling.
This commit is contained in:
Daniel Lee
2018-02-05 18:12:04 +01:00
parent 57e172b30a
commit 4ce862c5b4
4 changed files with 10 additions and 4 deletions
@@ -7,7 +7,6 @@ export interface Props {
}
export default class ScrollBar extends React.Component<Props, any> {
private container: any;
private ps: PerfectScrollbar;
@@ -16,7 +15,9 @@ export default class ScrollBar extends React.Component<Props, any> {
}
componentDidMount() {
this.ps = new PerfectScrollbar(this.container);
this.ps = new PerfectScrollbar(this.container, {
wheelPropagation: true,
});
}
componentDidUpdate() {
+3 -1
View File
@@ -6,7 +6,9 @@ export function geminiScrollbar() {
return {
restrict: 'A',
link: function(scope, elem, attrs) {
let scrollbar = new PerfectScrollbar(elem[0]);
let scrollbar = new PerfectScrollbar(elem[0], {
wheelPropagation: true,
});
let lastPos = 0;
appEvents.on(