Fix canvas event handling
CCBUG: 421083
Differential Revision: https://phabricator.kde.org/D29542
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>