OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
themes
/
mobile
/
main
/
ts
/
touch
/
scroll
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:36:46 AM
rwxr-xr-x
📄
Scrollable.ts
826 bytes
02/20/2020 06:36:44 AM
rw-r--r--
Editing: Scrollable.ts
Close
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { Fun } from '@ephox/katamari'; import { Class } from '@ephox/sugar'; import Styles from '../../style/Styles'; const scrollable = Styles.resolve('scrollable'); const register = function (element) { /* * The reason this function exists is to have a * central place where to set if an element can be explicitly * scrolled. This is for mobile devices atm. */ Class.add(element, scrollable); }; const deregister = function (element) { Class.remove(element, scrollable); }; export default { register, deregister, scrollable: Fun.constant(scrollable) };