}
public void onPreviewNativeEvent(NativePreviewEvent event) {
Event e = event.getNativeEvent().<Event> cast();
PreviewEvent pe = new PreviewEvent(this, event);
pe.setType(new EventType(e.getTypeInt()));
pe.setEvent(e);
lastX = pe.getClientX();
lastY = pe.getClientY();
if (autoHide && onAutoHidePreview(pe)) {
if (autoHideAllowEvent) {
event.cancel();
}