PHP Classes

File: public/js/tinymce/src/themes/mobile/src/main/js/ios/view/Greenzone.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/mobile/src/main/js/ios/view/Greenzone.js   Download  
File: public/js/tinymce/src/themes/mobile/src/main/js/ios/view/Greenzone.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: 947 bytes
 

Contents

Class file image Download
define( 'tinymce.themes.mobile.ios.view.Greenzone', [ 'ephox.katamari.api.Fun', 'global!parseInt', 'tinymce.themes.mobile.ios.scroll.IosScrolling', 'tinymce.themes.mobile.ios.view.DeviceZones', 'tinymce.themes.mobile.touch.focus.CursorRefresh' ], function (Fun, parseInt, IosScrolling, DeviceZones, CursorRefresh) { var scrollIntoView = function (cWin, socket, dropup, top, bottom) { var greenzone = DeviceZones.getGreenzone(socket, dropup); var refreshCursor = Fun.curry(CursorRefresh.refresh, cWin); if (top > greenzone || bottom > greenzone) { IosScrolling.moveOnlyScroll(socket, socket.dom().scrollTop - greenzone + bottom).get(refreshCursor); } else if (top < 0) { IosScrolling.moveOnlyScroll(socket, socket.dom().scrollTop + top).get(refreshCursor); } else { // do nothing } }; return { scrollIntoView: scrollIntoView }; } );