Fixes scroll bug when panning on mobile mode.

Reviewed by: Rafael Brandão