Add isPanning callback