Keep mouse move handler from going out of control
Keep mouse move handler from going out of control

Previously the editor could be hidden and the mouse move handler
would start logging errors since it will still trying to compute
positions based on the move events still firing on the document.

Now the display property is checked in the handler and also the selection
is finalized when a move event occurs and the button is no longer pressed.

Closes #1755

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