unitycoder / UnityMobilePaint

Public repository for MobilePaint issues & requests
https://www.assetstore.unity3d.com/en/#!/content/19803?aid=1101lGti
MIT License
49 stars 16 forks source link

holding down mouse and moving outside of brush size slider, paints & adjusts brush size #17

Closed unitycoder closed 8 years ago

unitycoder commented 8 years ago

it should either stop dragging slider when outside, or dont paint while still dragging slider http://forum.unity3d.com/threads/released-mobile-paint-with-multi-touch.262645/page-4#post-2483179

unitycoder commented 8 years ago

temporary fix for pc: // FIND LINE if (eventSystem.IsPointerOverGameObject()) return;

// ADD THIS LINE AFTER IT if (eventSystem.currentSelectedGameObject!=null) return;

unitycoder commented 8 years ago

temporary fix for mobiles: // FIND LINES

while (i < Input.touchCount)
{
     touch = Input.GetTouch(i);
     if (eventSystem.IsPointerOverGameObject(touch.fingerId)) return;
     i++;
}

// ADD THIS LINE AFTER THOSE LINES ( after last } ) if (eventSystem.currentSelectedGameObject != null) return

unitycoder commented 8 years ago

fixed in the coming v1.96 update