¡@

Home 

javascript Programming Glossary: currentposition

Scroll smoothly to specific element on page

http://stackoverflow.com/questions/17722497/scroll-smoothly-to-specific-element-on-page

Animation tick. scrollVerticalTickToPosition function currentPosition targetPosition var filter 0.2 var fps 60 var difference parseFloat.. fps 60 var difference parseFloat targetPosition parseFloat currentPosition Snap then stop if arrived. var arrived Math.abs difference 0.5.. scrollTo 0.0 targetPosition return Filtered position. currentPosition parseFloat currentPosition 1.0 filter parseFloat targetPosition..

set cursor to specific position on specific line in a textarea

http://stackoverflow.com/questions/17858174/set-cursor-to-specific-position-on-specific-line-in-a-textarea

your fiddle see http jsfiddle.net eghpf 2 I've added var currentPosition which is used in this method function setSelectionRange input..