This is a follow-up task to https://bugs.webkit.org/show_bug.cgi?id=198462. We use magic -2 values in a bunch of places to identify that no button was pressed for mouse events. We should instead use an optional type.