This is an alternative implementation of https://git.reviewboard.kde.org/r/125847/ . Unlike that, this new implementation does not disable synthesizing of mouse events from touch events. As a consequence, you can still draw on the touch screen with your finger. However, when swiping to change the page in drawing mode, more often than not the first finger on the screen will leave a mark.