Allow looking around while digging (Android with touchtarget=false)
Due to the check for m_move_sent_as_mouse_event, which is used to distinguish between input for camera movement and input for node selection, the shootline code was being executed despite the result not being used with touchtarget=false.
This commit is contained in:
parent
f6322dcc0b
commit
3670de4c0c
@ -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) *
|
||||
|
Loading…
x
Reference in New Issue
Block a user