some porting of the panzoom control w/o dep's