fixed offset problem for mobile canvas drawing