Merge pull request #28 from sfan5/pull1

Allow looking around while digging
This commit is contained in:
Maksim Gamarnik 2016-10-17 00:58:34 +03:00 committed by GitHub
commit 5957cd3ca1
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ void TouchScreenGUI::translateEvent(const SEvent &event)
if (m_move_id != -1) {
if ((event.TouchInput.ID == m_move_id) &&
(!m_move_sent_as_mouse_event)) {
(!m_move_sent_as_mouse_event || !g_settings->getBool("touchtarget"))) {
double distance = sqrt(
(m_pointerpos[event.TouchInput.ID].X - event.TouchInput.X) *