зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1244546 part 1 - Apply proper unit conversion for SynthesizeNativeMouseEvent. r=karlt
MozReview-Commit-ID: 6XLzx7CyFEj --HG-- extra : source : 5c61d059fc06b04456ab69c608d98e1e9433619d
This commit is contained in:
Родитель
77f7208a3f
Коммит
51156be7b4
|
@ -6823,7 +6823,8 @@ nsWindow::SynthesizeNativeMouseEvent(LayoutDeviceIntPoint aPoint,
|
|||
// aNativeMessage != GDK_BUTTON_RELEASE we'll synthesize a motion event
|
||||
// that will be emitted by gdk_display_warp_pointer().
|
||||
GdkScreen* screen = gdk_window_get_screen(mGdkWindow);
|
||||
gdk_display_warp_pointer(display, screen, aPoint.x, aPoint.y);
|
||||
GdkPoint point = DevicePixelsToGdkPointRoundDown(aPoint);
|
||||
gdk_display_warp_pointer(display, screen, point.x, point.y);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче