disable brush pressure averaging, implement single finger for camera rotation when touch draw is disabled

This commit is contained in:
2018-10-13 17:03:15 +02:00
parent da5041b187
commit 64ce471ed8
7 changed files with 36 additions and 12 deletions

View File

@@ -16,8 +16,20 @@ void CanvasModeBasicCamera::on_MouseEvent(MouseEvent* me, glm::vec2& loc)
switch (me->m_type)
{
case kEventType::MouseDownL:
if (canvas->m_touch_lock && me->m_source == kEventSource::Touch)
{
m_draggingR = true;
m_dragR_start = me->m_pos;
m_pan_start = canvas->m_pan;
node->mouse_capture();
}
break;
case kEventType::MouseUpL:
if (canvas->m_touch_lock && me->m_source == kEventSource::Touch)
{
m_draggingR = false;
node->mouse_release();
}
break;
case kEventType::MouseDownR:
if (App::I.keys[(int)kKey::KeyAlt])