How to avoid handling the moving event with zooming gesture event for a same move

This code shows a method to avoid handling moving event redundantly with zooming gesture.