revert whitespace changes

pull/2958/head
James Garbutt 6 years ago
parent d22422ca2f
commit 9cc3928b02

@ -21,7 +21,7 @@
"prefer-const": [2, { "destructuring": "all" }],
"arrow-spacing": 2,
"no-inner-declarations": 0,
"@typescript-eslint/indent": [2, "tab", { "SwitchCase": 1 }],
"@typescript-eslint/indent": ["warn", "tab", { "SwitchCase": 1 }],
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/array-type": ["error", "array-simple"],

@ -144,14 +144,14 @@ export default class WindowWrapper extends Wrapper {
[bindings.scrollX, bindings.scrollY].filter(Boolean).map(
b => `changed.${b}`
).join(' || ')
} && !${scrolling}) {
} && !${scrolling}) {
${scrolling} = true;
clearTimeout(${scrolling_timeout});
window.scrollTo(${
bindings.scrollX ? `ctx.${bindings.scrollX}` : `window.pageXOffset`
}, ${
}, ${
bindings.scrollY ? `ctx.${bindings.scrollY}` : `window.pageYOffset`
});
});
${scrolling_timeout} = setTimeout(${clear_scrolling}, 100);
}
`);

Loading…
Cancel
Save