If evt.preventPanning is true, don't continue, this condition is wrong