added zoom factor.

http://osc.matsukei.net/issues/386 fixes #386
changed range selection conditions a intersect.

http://osc.matsukei.net/issues/393 fixes #393