PHP Classes

File: public/js/tinymce/src/themes/mobile/src/main/js/touch/scroll/Scrollable.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/mobile/src/main/js/touch/scroll/Scrollable.js   Download  
File: public/js/tinymce/src/themes/mobile/src/main/js/touch/scroll/Scrollable.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 755 bytes
 

Contents

Class file image Download
define( 'tinymce.themes.mobile.touch.scroll.Scrollable', [ 'ephox.katamari.api.Fun', 'ephox.sugar.api.properties.Class', 'tinymce.themes.mobile.style.Styles' ], function (Fun, Class, Styles) { var scrollable = Styles.resolve('scrollable'); var 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); }; var deregister = function (element) { Class.remove(element, scrollable); }; return { register: register, deregister: deregister, scrollable: Fun.constant(scrollable) }; } );