fix a bug in setting Tools.current
Fix hotcontrol hack eating panning events