Version 1.2: Added check for g:scroll_position_auto_enable flag
Version 1.3: Bug fixes and improvements