Changeset 29352
- Timestamp:
- 08/01/2014 09:42:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/editor-expand.js
r29336 r29352 22 22 mceUnbind = function(){}, 23 23 fixedTop = false, 24 fixedBottom = false; 24 fixedBottom = false, 25 scrollTimer; 25 26 26 27 $textEditorClone.insertAfter( $textEditor ); … … 346 347 } 347 348 349 function afterScroll() { 350 clearTimeout( scrollTimer ); 351 scrollTimer = setTimeout( adjust, 200 ); 352 } 353 348 354 function on() { 349 355 // Scroll to the top when triggering this from JS. … … 358 364 $window.on( 'scroll.editor-expand resize.editor-expand', function( event ) { 359 365 adjust( event.type ); 366 afterScroll(); 360 367 } ); 361 368
Note: See TracChangeset
for help on using the changeset viewer.