关于计算偏移的那两个值
能不能把m_start_x = e.pageX - ctrl.offsetLeft; m_start_y = e.pageY - ctrl.offsetTop;换成 m_start_x = panel.offsetLeft; m_start_y = panel.offsetTop;啊?
能不能把m_start_x = e.pageX - ctrl.offsetLeft; m_start_y = e.pageY - ctrl.offsetTop;换成 m_start_x = panel.offsetLeft; m_start_y = panel.offsetTop;啊?
2015-03-10
举报