[scrollTo] Use the curOp.updateScrollPos functionality
[scrollTo] Use the curOp.updateScrollPos functionality

This removes some duplicate code, and delays the scrolling to the next display update
which makes it less likely to interfere with other actions in unexpected ways.

hackmdio/CodeMirror,apatawari/CodeMirror,gkoberger/CodeMirror,wingify/CodeMirror,camellhf/CodeMirror,kuangyeheng/CodeMirror,mightyguava/CodeMirror,supriyantomaftuh/CodeMirror,isdampe/CodeMirror,isdampe/CodeMirror,NumbersInternational/CodeMirror,trumanliu/CodeMirror,mightyguava/CodeMirror,kolya-ay/CodeMirror,gkoberger/CodeMirror,thomasjm/CodeMirror,webida/CodeMirror,rrandom/CodeMirror,sekcheong/CodeMirror,kerabromsmu/CodeMirror,ThebingServices/CodeMirror,INTELOGIE/CodeMirror,sgoo/CodeMirror,karthikeyansam/CodeMirror,loopspace/CodeMirror,cben/CodeMirror,Aliccer/CodeMirror,djadmin/CodeMirror,matthewbauer/CodeMirror,pjkui/CodeMirror,kuangyeheng/CodeMirror,vanloswang/CodeMirror,sanyaade-iot/CodeMirror,jhnesk/CodeMirror,jpolitz/CodeMirror,Dominator008/CodeMirror,KamranMackey/CodeMirror,codio/CodeMirror,camellhf/CodeMirror,nawroth/CodeMirror,qweasd1/CodeMirror,MarcelGerber/CodeMirror,michaelerobertsjr/CodeMirror,Jisuanke/CodeMirror,angelozerr/CodeMirror,ficristo/CodeMirror,karevn/CodeMirror,sanyaade-iot/CodeMirror,rasata/CodeMirror,buchslava/CodeMirror,ThebingServices/CodeMirror,fmoliveira/CodeMirror,kangkot/CodeMirror,fivetran/CodeMirror,angelozerr/CodeMirror,abdelouahabb/CodeMirror,symbla/CodeMirror,ZombieHippie/CodeMirror,r7kamura/CodeMirror,joshterrell805-historic/CodeMirror,fivetran/CodeMirror,axter/CodeMirror,kangkot/CodeMirror,mightyguava/CodeMirror,abdelouahabb/CodeMirror,ThebingServices/CodeMirror,philuchansky/CodeMirror,xeronith/CodeMirror,jpolitz/CodeMirror,crazy4chrissi/CodeMirror,amsul/CodeMirror,adobe/CodeMirror2,antimatter15/CodeMirror,Ermlab/CodeMirror,ejgallego/CodeMirror,mtaran-google/CodeMirror,karthikeyansam/CodeMirror,jpolitz/CodeMirror,mizchi/CodeMirror,bgrins/CodeMirror,antimatter15/CodeMirror,mihailik/CodeMirror,Jisuanke/CodeMirror,d0liver/CodeMirror,mtaran-google/CodeMirror,Carreau/CodeMirror,belph/CodeMirror,axter/CodeMirror,DustinH/CodeMirror,mihailik/CodeMirror,elisee/CodeMirror,pjkui/CodeMirror,bfrohs/CodeMirror,supriyantomaftuh/CodeMirror,mihailik/CodeMirror,belph/CodeMirror,jansel/CodeMirror,Aliccer/CodeMirror,manderson23/CodeMirror,increpare/CodeMirror,ssxxue/CodeMirror,elisee/CodeMirror,symbla/CodeMirror,rustemferreira/CodeMirror,kerabromsmu/CodeMirror,kerabromsmu/CodeMirror,ficristo/CodeMirror,ZombieHippie/CodeMirror,thomasjm/CodeMirror,jessegrosjean/CodeMirror,happibum/CodeMirror-main,notepadqq/CodeMirror,dudb/CodeMirror,webida/CodeMirror,anthonygego/CodeMirror,antimatter15/CodeMirror,pinbe/CodeMirror,bfrohs/CodeMirror,qiankun007/CodeMirror,wbinnssmith/CodeMirror,happibum/CodeMirror-main,ssxxue/CodeMirror,Aliccer/CodeMirror,bocharsky-bw/CodeMirror,jkaplon/CodeMirror,ficristo/CodeMirror,ksanaforge/CodeMirror,kangkot/CodeMirror,skylarkcob/CodeMirror,dbarnett/CodeMirror,TechnicalPursuit/CodeMirror,codio/CodeMirror,SidPresse/CodeMirror,Ermlab/CodeMirror,schanzer/CodeMirror,agendor/CodeMirror,EasonYi/CodeMirror,karevn/CodeMirror,tpphu/CodeMirror,skylarkcob/CodeMirror,kevinushey/CodeMirror,Allenice/CodeMirror,morrisonwudi/CodeMirror,alur/CodeMirror,philuchansky/CodeMirror,michaelerobertsjr/CodeMirror,fpco/codemirror,davidpham87/CodeMirror,nightwing/CodeMirror,tpphu/CodeMirror,karevn/CodeMirror,grzegorzmazur/CodeMirror,Dominator008/CodeMirror,notepadqq/CodeMirror,rustemferreira/CodeMirror,qiankun007/CodeMirror,rrandom/CodeMirror,kuangyeheng/CodeMirror,MarcelGerber/CodeMirror,Allenice/CodeMirror,jayaprabhakar/CodeMirror,symbla/CodeMirror,webida/CodeMirror,jochenberger/CodeMirror,systay/CodeMirror,grzegorzmazur/CodeMirror,flyskyko/CodeMirror,alur/CodeMirror,KamranMackey/CodeMirror,vanloswang/CodeMirror,rasata/CodeMirror,r7kamura/CodeMirror,amsul/CodeMirror,davidpham87/CodeMirror,hccampos/CodeMirror,INTELOGIE/CodeMirror,grzegorzmazur/CodeMirror,shiren/CodeMirror,wbinnssmith/CodeMirror,NeZaMy/CodeMirror2,vincentwoo/CodeMirror,TechnicalPursuit/CodeMirror,SidPresse/CodeMirror,nawroth/CodeMirror,sourcelair/CodeMirror,manderson23/CodeMirror,jayaprabhakar/CodeMirror,fmoliveira/CodeMirror,schanzer/CodeMirror,INTELOGIE/CodeMirror,fpco/codemirror,jkaplon/CodeMirror,cintiamh/CodeMirror,melpon/CodeMirror,systay/CodeMirror,DustinH/CodeMirror,sekcheong/CodeMirror,manderson23/CodeMirror,jochenberger/CodeMirror,dperetti/CodeMirror,fmoliveira/CodeMirror,philuchansky/CodeMirror,djadmin/CodeMirror,djadmin/CodeMirror,mizchi/CodeMirror,kk9599/CodeMirror,TechnicalPursuit/CodeMirror,NeZaMy/CodeMirror2,bluesh55/CodeMirror,bluesh55/CodeMirror,sourcelair/CodeMirror,dperetti/CodeMirror,gkoberger/CodeMirror,CartoDB/CodeMirror,michaelerobertsjr/CodeMirror,rrandom/CodeMirror,MarcelGerber/CodeMirror,bluesh55/CodeMirror,pinbe/CodeMirror,nightwing/CodeMirror,thomasjm/CodeMirror,isdampe/CodeMirror,namin/CodeMirror,pabloferz/CodeMirror,sgoo/CodeMirror,vanloswang/CodeMirror,schanzer/CodeMirror,pabloferz/CodeMirror,increpare/CodeMirror,jhnesk/CodeMirror,apatawari/CodeMirror,pabloferz/CodeMirror,ashmind/CodeMirror,jessegrosjean/CodeMirror,increpare/CodeMirror,kolya-ay/CodeMirror,ashmind/CodeMirror,hackmdio/CodeMirror,TDaglis/CodeMirror,Navaneethsen/CodeMirror,loopspace/CodeMirror,vincentwoo/CodeMirror,joshterrell805-historic/CodeMirror,ZombieHippie/CodeMirror,anthonygego/CodeMirror,cintiamh/CodeMirror,dbarnett/CodeMirror,dudb/CodeMirror,Allenice/CodeMirror,flyskyko/CodeMirror,adobe/CodeMirror2,ksanaforge/CodeMirror,NumbersInternational/CodeMirror,hccampos/CodeMirror,kk9599/CodeMirror,dperetti/CodeMirror,dudb/CodeMirror,Jisuanke/CodeMirror,KamranMackey/CodeMirror,wingify/CodeMirror,NeZaMy/CodeMirror2,shiren/CodeMirror,jkaplon/CodeMirror,AlanWasTaken/codemirror,ejgallego/CodeMirror,SidPresse/CodeMirror,EasonYi/CodeMirror,rasata/CodeMirror,sourcelair/CodeMirror,pinbe/CodeMirror,sekcheong/CodeMirror,systay/CodeMirror,bocharsky-bw/CodeMirror,axter/CodeMirror,Icenium/CodeMirror,webida/CodeMirror,flyskyko/CodeMirror,amshali/CodeMirror,morrisonwudi/CodeMirror,kevinushey/CodeMirror,belph/CodeMirror,InternetGuru/CodeMirror,cben/CodeMirror,matthewbauer/CodeMirror,mizchi/CodeMirror,apatawari/CodeMirror,crazy4chrissi/CodeMirror,matthewbauer/CodeMirror,supriyantomaftuh/CodeMirror,ssxxue/CodeMirror,NumbersInternational/CodeMirror,jessegrosjean/CodeMirror,sanyaade-iot/CodeMirror,Navaneethsen/CodeMirror,notepadqq/CodeMirror,rustemferreira/CodeMirror,bocharsky-bw/CodeMirror,d0liver/CodeMirror,xeronith/CodeMirror,amshali/CodeMirror,Icenium/CodeMirror,agendor/CodeMirror,wingify/CodeMirror,xeronith/CodeMirror,GerHobbelt/CodeMirror2,agendor/CodeMirror,Carreau/CodeMirror,shiren/CodeMirror,dbarnett/CodeMirror,cintiamh/CodeMirror,ksanaforge/CodeMirror,InternetGuru/CodeMirror,anthonygego/CodeMirror,CartoDB/CodeMirror,GerHobbelt/CodeMirror2,namin/CodeMirror,jayaprabhakar/CodeMirror,melpon/CodeMirror,hccampos/CodeMirror,bgrins/CodeMirror,Navaneethsen/CodeMirror,bgrins/CodeMirror,morrisonwudi/CodeMirror,d0liver/CodeMirror,happibum/CodeMirror-main,trumanliu/CodeMirror,nightwing/CodeMirror,TDaglis/CodeMirror,abdelouahabb/CodeMirror,qiankun007/CodeMirror,InternetGuru/CodeMirror,AlanWasTaken/codemirror,trumanliu/CodeMirror,crazy4chrissi/CodeMirror,qweasd1/CodeMirror,ashmind/CodeMirror,tpphu/CodeMirror,mtaran-google/CodeMirror,kk9599/CodeMirror,vincentwoo/CodeMirror,pjkui/CodeMirror,bfrohs/CodeMirror,nawroth/CodeMirror,amshali/CodeMirror,melpon/CodeMirror,camellhf/CodeMirror,r7kamura/CodeMirror,namin/CodeMirror,AlanWasTaken/codemirror,Icenium/CodeMirror,DustinH/CodeMirror,alur/CodeMirror,davidpham87/CodeMirror,codio/CodeMirror,Dominator008/CodeMirror,buchslava/CodeMirror,TDaglis/CodeMirror,adobe/CodeMirror2,hackmdio/CodeMirror,EasonYi/CodeMirror,ejgallego/CodeMirror,buchslava/CodeMirror,elisee/CodeMirror,loopspace/CodeMirror,skylarkcob/CodeMirror,jansel/CodeMirror,qweasd1/CodeMirror,karthikeyansam/CodeMirror