Fix firefox bug when clicking canvas

Signed-off-by: Eduardo L. Buratti <eburatti09@gmail.com>