fix differenciate between left/right button press in canvas.cpp

sorry for the extra commits