Fix bug: Don't scroll to top on click after scrolling down.
Fix bug: Don't scroll to top on click after scrolling down.

The editor has a tabindex of -1 so it can receive focus. This makes it
behave like a focusable element such as a textarea. But in reality,
when the editor receives focus, it just focuses the hidden input that
it watches for textInput events. So when you click, focus is stolen
away from the hidden input and goes to the editor. But then the editor
sends focus back to the hidden input. Because the input was at the top
of the screen, WebKit would scroll up to bring it on screen when
focused. So now I just bring the hidden input on screen (by positioning
it even with scrollTop) before focusing it. That prevents the WebKit
from scrolling.

Shekharrajak/atom,sillvan/atom,fang-yufeng/atom,qskycolor/atom,vhutheesing/atom,amine7536/atom,scv119/atom,dsandstrom/atom,deepfox/atom,tisu2tisu/atom,t9md/atom,vinodpanicker/atom,deepfox/atom,yangchenghu/atom,tanin47/atom,einarmagnus/atom,harshdattani/atom,seedtigo/atom,codex8/atom,dkfiresky/atom,SlimeQ/atom,MjAbuz/atom,FoldingText/atom,vjeux/atom,matthewclendening/atom,helber/atom,einarmagnus/atom,efatsi/atom,jacekkopecky/atom,cyzn/atom,bcoe/atom,Jandersolutions/atom,alfredxing/atom,Shekharrajak/atom,RobinTec/atom,mnquintana/atom,palita01/atom,0x73/atom,h0dgep0dge/atom,abcP9110/atom,lisonma/atom,qskycolor/atom,ilovezy/atom,ironbox360/atom,florianb/atom,ppamorim/atom,fedorov/atom,jjz/atom,kdheepak89/atom,brumm/atom,beni55/atom,alexandergmann/atom,bj7/atom,yalexx/atom,rlugojr/atom,avdg/atom,john-kelly/atom,elkingtonmcb/atom,vcarrera/atom,pombredanne/atom,jjz/atom,me6iaton/atom,rlugojr/atom,dkfiresky/atom,sillvan/atom,sekcheong/atom,YunchengLiao/atom,devoncarew/atom,NunoEdgarGub1/atom,bcoe/atom,decaffeinate-examples/atom,Rychard/atom,qskycolor/atom,jlord/atom,kittens/atom,mnquintana/atom,liuderchi/atom,rjattrill/atom,bryonwinger/atom,KENJU/atom,fredericksilva/atom,chengky/atom,YunchengLiao/atom,hellendag/atom,ppamorim/atom,chfritz/atom,charleswhchan/atom,fedorov/atom,synaptek/atom,brettle/atom,lpommers/atom,lpommers/atom,gontadu/atom,avdg/atom,harshdattani/atom,rsvip/aTom,devoncarew/atom,stinsonga/atom,liuxiong332/atom,gontadu/atom,AlbertoBarrago/atom,gabrielPeart/atom,Abdillah/atom,liuxiong332/atom,lisonma/atom,jlord/atom,omarhuanca/atom,FIT-CSE2410-A-Bombs/atom,vinodpanicker/atom,ardeshirj/atom,kittens/atom,G-Baby/atom,ObviouslyGreen/atom,rookie125/atom,seedtigo/atom,h0dgep0dge/atom,kjav/atom,dkfiresky/atom,chengky/atom,dannyflax/atom,alexandergmann/atom,hharchani/atom,alfredxing/atom,Galactix/atom,Locke23rus/atom,john-kelly/atom,devoncarew/atom,sotayamashita/atom,nucked/atom,RobinTec/atom,lovesnow/atom,G-Baby/atom,tony612/atom,Austen-G/BlockBuilder,basarat/atom,kjav/atom,hagb4rd/atom,Jandersolutions/atom,dsandstrom/atom,fredericksilva/atom,harshdattani/atom,daxlab/atom,Jandersoft/atom,bryonwinger/atom,rxkit/atom,woss/atom,matthewclendening/atom,sxgao3001/atom,batjko/atom,rsvip/aTom,codex8/atom,ali/atom,me-benni/atom,kjav/atom,davideg/atom,bencolon/atom,Abdillah/atom,chengky/atom,pombredanne/atom,yomybaby/atom,andrewleverette/atom,kaicataldo/atom,hharchani/atom,liuxiong332/atom,sebmck/atom,ReddTea/atom,me6iaton/atom,ReddTea/atom,omarhuanca/atom,gisenberg/atom,batjko/atom,woss/atom,Jonekee/atom,boomwaiza/atom,mostafaeweda/atom,Jandersoft/atom,AdrianVovk/substance-ide,synaptek/atom,Klozz/atom,boomwaiza/atom,BogusCurry/atom,devoncarew/atom,sxgao3001/atom,SlimeQ/atom,niklabh/atom,beni55/atom,NunoEdgarGub1/atom,decaffeinate-examples/atom,rxkit/atom,florianb/atom,kc8wxm/atom,vcarrera/atom,constanzaurzua/atom,Austen-G/BlockBuilder,kdheepak89/atom,Shekharrajak/atom,execjosh/atom,stinsonga/atom,tjkr/atom,execjosh/atom,folpindo/atom,Sangaroonaom/atom,n-riesco/atom,liuderchi/atom,vinodpanicker/atom,mnquintana/atom,Rodjana/atom,vhutheesing/atom,rmartin/atom,tisu2tisu/atom,dannyflax/atom,bsmr-x-script/atom,prembasumatary/atom,john-kelly/atom,DiogoXRP/atom,ppamorim/atom,paulcbetts/atom,me6iaton/atom,kjav/atom,RobinTec/atom,Jandersolutions/atom,nrodriguez13/atom,ilovezy/atom,rlugojr/atom,kevinrenaers/atom,abcP9110/atom,vjeux/atom,acontreras89/atom,transcranial/atom,Arcanemagus/atom,n-riesco/atom,Locke23rus/atom,hakatashi/atom,fscherwi/atom,yomybaby/atom,githubteacher/atom,0x73/atom,johnrizzo1/atom,sekcheong/atom,john-kelly/atom,ralphtheninja/atom,ezeoleaf/atom,johnhaley81/atom,bencolon/atom,burodepeper/atom,crazyquark/atom,einarmagnus/atom,sotayamashita/atom,tisu2tisu/atom,toqz/atom,lisonma/atom,gisenberg/atom,splodingsocks/atom,gisenberg/atom,Andrey-Pavlov/atom,lovesnow/atom,xream/atom,matthewclendening/atom,rjattrill/atom,mnquintana/atom,0x73/atom,bsmr-x-script/atom,anuwat121/atom,g2p/atom,ashneo76/atom,jtrose2/atom,nvoron23/atom,john-kelly/atom,chfritz/atom,Arcanemagus/atom,niklabh/atom,abcP9110/atom,yomybaby/atom,hagb4rd/atom,alexandergmann/atom,GHackAnonymous/atom,sxgao3001/atom,brettle/atom,davideg/atom,erikhakansson/atom,stuartquin/atom,Andrey-Pavlov/atom,prembasumatary/atom,fang-yufeng/atom,scv119/atom,lovesnow/atom,Jdesk/atom,bsmr-x-script/atom,florianb/atom,rmartin/atom,Hasimir/atom,crazyquark/atom,tanin47/atom,Abdillah/atom,wiggzz/atom,BogusCurry/atom,vjeux/atom,tanin47/atom,dannyflax/atom,panuchart/atom,anuwat121/atom,jlord/atom,gisenberg/atom,vinodpanicker/atom,g2p/atom,hagb4rd/atom,jordanbtucker/atom,PKRoma/atom,transcranial/atom,jtrose2/atom,hakatashi/atom,hpham04/atom,pombredanne/atom,Huaraz2/atom,rmartin/atom,ashneo76/atom,yangchenghu/atom,rsvip/aTom,qskycolor/atom,originye/atom,lovesnow/atom,ali/atom,kittens/atom,targeter21/atom,deoxilix/atom,mertkahyaoglu/atom,AlexxNica/atom,Mokolea/atom,medovob/atom,jtrose2/atom,gisenberg/atom,ilovezy/atom,phord/atom,matthewclendening/atom,Shekharrajak/atom,mdumrauf/atom,basarat/atom,fang-yufeng/atom,niklabh/atom,rmartin/atom,splodingsocks/atom,oggy/atom,kandros/atom,vinodpanicker/atom,gabrielPeart/atom,Ju2ender/atom,jacekkopecky/atom,jeremyramin/atom,hagb4rd/atom,Galactix/atom,g2p/atom,rsvip/aTom,russlescai/atom,rjattrill/atom,dkfiresky/atom,Rychard/atom,deoxilix/atom,GHackAnonymous/atom,qiujuer/atom,G-Baby/atom,bolinfest/atom,Jdesk/atom,Klozz/atom,vjeux/atom,batjko/atom,ivoadf/atom,woss/atom,rookie125/atom,jtrose2/atom,sxgao3001/atom,fedorov/atom,0x73/atom,sebmck/atom,acontreras89/atom,KENJU/atom,qiujuer/atom,transcranial/atom,Ingramz/atom,Abdillah/atom,toqz/atom,FoldingText/atom,SlimeQ/atom,svanharmelen/atom,rookie125/atom,me6iaton/atom,toqz/atom,Ingramz/atom,ObviouslyGreen/atom,NunoEdgarGub1/atom,me-benni/atom,atom/atom,sebmck/atom,beni55/atom,Sangaroonaom/atom,Hasimir/atom,synaptek/atom,DiogoXRP/atom,nvoron23/atom,burodepeper/atom,AdrianVovk/substance-ide,kc8wxm/atom,nvoron23/atom,sotayamashita/atom,oggy/atom,yalexx/atom,abe33/atom,Austen-G/BlockBuilder,Jdesk/atom,Neron-X5/atom,nucked/atom,GHackAnonymous/atom,ObviouslyGreen/atom,kc8wxm/atom,CraZySacX/atom,RobinTec/atom,cyzn/atom,vhutheesing/atom,prembasumatary/atom,brettle/atom,abe33/atom,tony612/atom,AdrianVovk/substance-ide,toqz/atom,Galactix/atom,Ingramz/atom,BogusCurry/atom,dijs/atom,daxlab/atom,omarhuanca/atom,hpham04/atom,ralphtheninja/atom,chfritz/atom,einarmagnus/atom,kc8wxm/atom,Huaraz2/atom,jjz/atom,charleswhchan/atom,mostafaeweda/atom,chengky/atom,hakatashi/atom,cyzn/atom,FIT-CSE2410-A-Bombs/atom,stuartquin/atom,seedtigo/atom,kevinrenaers/atom,SlimeQ/atom,gzzhanghao/atom,dsandstrom/atom,Jandersolutions/atom,gontadu/atom,Huaraz2/atom,Andrey-Pavlov/atom,scv119/atom,kaicataldo/atom,Jdesk/atom,ardeshirj/atom,n-riesco/atom,johnhaley81/atom,RuiDGoncalves/atom,fredericksilva/atom,Klozz/atom,woss/atom,scippio/atom,tony612/atom,sxgao3001/atom,Locke23rus/atom,xream/atom,ppamorim/atom,AlbertoBarrago/atom,ReddTea/atom,sillvan/atom,gzzhanghao/atom,KENJU/atom,florianb/atom,Andrey-Pavlov/atom,bradgearon/atom,russlescai/atom,CraZySacX/atom,tjkr/atom,nrodriguez13/atom,basarat/atom,pkdevbox/atom,yangchenghu/atom,mdumrauf/atom,woss/atom,davideg/atom,jacekkopecky/atom,fscherwi/atom,medovob/atom,qiujuer/atom,Austen-G/BlockBuilder,decaffeinate-examples/atom,pombredanne/atom,originye/atom,ali/atom,champagnez/atom,Galactix/atom,omarhuanca/atom,charleswhchan/atom,pengshp/atom,brumm/atom,bencolon/atom,champagnez/atom,rmartin/atom,jeremyramin/atom,davideg/atom,codex8/atom,hpham04/atom,decaffeinate-examples/atom,n-riesco/atom,pengshp/atom,omarhuanca/atom,darwin/atom,sillvan/atom,devmario/atom,ezeoleaf/atom,Hasimir/atom,panuchart/atom,YunchengLiao/atom,andrewleverette/atom,Jandersoft/atom,anuwat121/atom,svanharmelen/atom,batjko/atom,burodepeper/atom,hagb4rd/atom,gzzhanghao/atom,tmunro/atom,russlescai/atom,jlord/atom,qiujuer/atom,liuxiong332/atom,fredericksilva/atom,helber/atom,Dennis1978/atom,dannyflax/atom,yomybaby/atom,ReddTea/atom,jlord/atom,hakatashi/atom,ilovezy/atom,constanzaurzua/atom,scv119/atom,001szymon/atom,NunoEdgarGub1/atom,acontreras89/atom,wiggzz/atom,Jandersoft/atom,stinsonga/atom,FIT-CSE2410-A-Bombs/atom,bcoe/atom,lisonma/atom,yomybaby/atom,fang-yufeng/atom,Jandersoft/atom,Sangaroonaom/atom,jtrose2/atom,kdheepak89/atom,Dennis1978/atom,wiggzz/atom,constanzaurzua/atom,ykeisuke/atom,einarmagnus/atom,liuderchi/atom,abe33/atom,targeter21/atom,bryonwinger/atom,fredericksilva/atom,yamhon/atom,KENJU/atom,jacekkopecky/atom,acontreras89/atom,targeter21/atom,liuderchi/atom,ironbox360/atom,palita01/atom,githubteacher/atom,FoldingText/atom,kdheepak89/atom,fedorov/atom,daxlab/atom,CraZySacX/atom,florianb/atom,andrewleverette/atom,basarat/atom,isghe/atom,alfredxing/atom,Ju2ender/atom,dijs/atom,kaicataldo/atom,ali/atom,crazyquark/atom,fedorov/atom,kdheepak89/atom,dijs/atom,basarat/atom,acontreras89/atom,isghe/atom,deepfox/atom,Neron-X5/atom,Jonekee/atom,AlisaKiatkongkumthon/atom,jacekkopecky/atom,sillvan/atom,efatsi/atom,Dennis1978/atom,ppamorim/atom,bradgearon/atom,lpommers/atom,sebmck/atom,rjattrill/atom,AlisaKiatkongkumthon/atom,hharchani/atom,GHackAnonymous/atom,mertkahyaoglu/atom,crazyquark/atom,hharchani/atom,xream/atom,charleswhchan/atom,tjkr/atom,t9md/atom,amine7536/atom,pombredanne/atom,phord/atom,mertkahyaoglu/atom,efatsi/atom,FoldingText/atom,mrodalgaard/atom,001szymon/atom,abcP9110/atom,001szymon/atom,ralphtheninja/atom,SlimeQ/atom,yamhon/atom,Neron-X5/atom,elkingtonmcb/atom,yalexx/atom,mrodalgaard/atom,isghe/atom,splodingsocks/atom,execjosh/atom,scippio/atom,GHackAnonymous/atom,erikhakansson/atom,kittens/atom,deoxilix/atom,mdumrauf/atom,mostafaeweda/atom,oggy/atom,amine7536/atom,brumm/atom,dsandstrom/atom,johnhaley81/atom,ezeoleaf/atom,helber/atom,Jonekee/atom,atom/atom,Ju2ender/atom,charleswhchan/atom,medovob/atom,folpindo/atom,bolinfest/atom,deepfox/atom,stinsonga/atom,dannyflax/atom,prembasumatary/atom,MjAbuz/atom,ykeisuke/atom,oggy/atom,t9md/atom,vcarrera/atom,ezeoleaf/atom,yalexx/atom,constanzaurzua/atom,Arcanemagus/atom,bcoe/atom,devmario/atom,Shekharrajak/atom,russlescai/atom,matthewclendening/atom,jjz/atom,Neron-X5/atom,johnrizzo1/atom,kandros/atom,dkfiresky/atom,toqz/atom,chengky/atom,hharchani/atom,qskycolor/atom,kittens/atom,crazyquark/atom,me-benni/atom,h0dgep0dge/atom,vcarrera/atom,Galactix/atom,nvoron23/atom,jordanbtucker/atom,RuiDGoncalves/atom,vcarrera/atom,fscherwi/atom,paulcbetts/atom,constanzaurzua/atom,sekcheong/atom,devmario/atom,bj7/atom,dsandstrom/atom,rxkit/atom,pengshp/atom,Andrey-Pavlov/atom,codex8/atom,darwin/atom,darwin/atom,kandros/atom,Abdillah/atom,mostafaeweda/atom,AlexxNica/atom,atom/atom,mertkahyaoglu/atom,davideg/atom,Austen-G/BlockBuilder,palita01/atom,devmario/atom,RuiDGoncalves/atom,amine7536/atom,ashneo76/atom,russlescai/atom,bolinfest/atom,MjAbuz/atom,h0dgep0dge/atom,synaptek/atom,PKRoma/atom,nvoron23/atom,qiujuer/atom,svanharmelen/atom,liuxiong332/atom,Rodjana/atom,yamhon/atom,bradgearon/atom,tony612/atom,targeter21/atom,bryonwinger/atom,jeremyramin/atom,mostafaeweda/atom,synaptek/atom,Hasimir/atom,rsvip/aTom,ivoadf/atom,Ju2ender/atom,me6iaton/atom,oggy/atom,sekcheong/atom,amine7536/atom,AlbertoBarrago/atom,gabrielPeart/atom,FoldingText/atom,originye/atom,yalexx/atom,stuartquin/atom,tony612/atom,avdg/atom,AlisaKiatkongkumthon/atom,kevinrenaers/atom,Mokolea/atom,KENJU/atom,Jandersolutions/atom,batjko/atom,AlexxNica/atom,ykeisuke/atom,ardeshirj/atom,pkdevbox/atom,prembasumatary/atom,bj7/atom,YunchengLiao/atom,Mokolea/atom,ilovezy/atom,YunchengLiao/atom,codex8/atom,folpindo/atom,jordanbtucker/atom,isghe/atom,erikhakansson/atom,hpham04/atom,paulcbetts/atom,MjAbuz/atom,boomwaiza/atom,Neron-X5/atom,NunoEdgarGub1/atom,basarat/atom,RobinTec/atom,Hasimir/atom,DiogoXRP/atom,nucked/atom,splodingsocks/atom,mrodalgaard/atom,ivoadf/atom,tmunro/atom,elkingtonmcb/atom,abcP9110/atom,mnquintana/atom,PKRoma/atom,ironbox360/atom,mertkahyaoglu/atom,pkdevbox/atom,ReddTea/atom,lisonma/atom,Ju2ender/atom,devmario/atom,panuchart/atom,sekcheong/atom,n-riesco/atom,scippio/atom,Austen-G/BlockBuilder,isghe/atom,jjz/atom,lovesnow/atom,hellendag/atom,MjAbuz/atom,FoldingText/atom,tmunro/atom,targeter21/atom,kjav/atom,vjeux/atom,githubteacher/atom,phord/atom,hellendag/atom,champagnez/atom,paulcbetts/atom,Jdesk/atom,jacekkopecky/atom,dannyflax/atom,kc8wxm/atom,fang-yufeng/atom,Rychard/atom,Rodjana/atom,deepfox/atom,devoncarew/atom,hpham04/atom,bcoe/atom,ali/atom,sebmck/atom,johnrizzo1/atom,nrodriguez13/atom