final int eventType = Event.as(startEvent).getTypeInt();
if (handleDragEvents
&& (eventType == Event.ONMOUSEDOWN || eventType == Event.ONTOUCHSTART)) {
// only really start drag event on mousemove
deferredStartRegistration = Event
.addNativePreviewHandler(new NativePreviewHandler() {
public void onPreviewNativeEvent(
NativePreviewEvent event) {
int typeInt = event.getTypeInt();
switch (typeInt) {