Bug 1193062 - Give synthesized NSEvents a timestamp that is in the right space. r=smichaud

NSEvent timestamps are relative to the system start time, not to the reference date.
This commit is contained in:
Markus Stange 2015-08-10 13:59:16 -04:00
parent 14315a177e
commit d9c491dfb6

View File

@ -1127,7 +1127,7 @@ nsresult nsChildView::SynthesizeNativeMouseEvent(LayoutDeviceIntPoint aPoint,
NSEvent* event = [NSEvent mouseEventWithType:(NSEventType)aNativeMessage
location:windowPoint
modifierFlags:aModifierFlags
timestamp:[NSDate timeIntervalSinceReferenceDate]
timestamp:[[NSProcessInfo processInfo] systemUptime]
windowNumber:[[mView window] windowNumber]
context:nil
eventNumber:0