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.

--HG--
extra : commitid : shDNTICmQP
extra : rebase_source : 2f45dc0e8acc83d5c7379554dfdd6090af694c89
extra : histedit_source : 75add13c0cbcafdafb14e052edea67bd4a0317e2
This commit is contained in:
Markus Stange 2015-08-10 13:59:16 -04:00
Родитель b00a4d2055
Коммит 19714849c8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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