namespace WebKit {
-const int s_iconOffset = 90;
const int s_widthMargin = 20;
const int s_heightMargin = 10;
const int s_cancelImageXMargin = 26;
const double s_minImageLength = 90;
const double s_maxImageLength = 300;
-
DragHandle::DragHandle(Evas_Object* object, const String& theme, const String& path, Drag* drag)
: m_view(object)
, m_drag(drag)
Evas_Event_Mouse_Down* event = static_cast<Evas_Event_Mouse_Down*>(eventInfo);
DragHandle* handle = static_cast<DragHandle*>(data);
- handle->setMousePosition(IntPoint(event->canvas.x, event->canvas.y - s_iconOffset));
+ handle->setMousePosition(IntPoint(event->canvas.x, event->canvas.y));
+ handle->m_drag->handleMouseDown(handle);
}
void DragHandle::mouseMove(void* data, Evas*, Evas_Object*, void* eventInfo)
Evas_Event_Mouse_Move* event = static_cast<Evas_Event_Mouse_Move*>(eventInfo);
DragHandle* handle = static_cast<DragHandle*>(data);
- handle->setMousePosition(IntPoint(event->cur.canvas.x, event->cur.canvas.y - s_iconOffset));
+ handle->setMousePosition(IntPoint(event->cur.canvas.x, event->cur.canvas.y));
if (!handle->m_dragJob)
handle->m_dragJob = ecore_job_add(update, data);