1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Remove check for touch input in MouseInputSourceInternal::getRawScreenPosition() and instead use the cached mouse position from the native peer impls

This commit is contained in:
ed 2019-03-12 16:25:44 +00:00
parent 7fad509483
commit 56302416df

View file

@ -96,8 +96,7 @@ public:
Point<float> getRawScreenPosition() const noexcept
{
return unboundedMouseOffset + (inputType != MouseInputSource::InputSourceType::touch ? MouseInputSource::getCurrentRawMousePosition()
: lastScreenPos);
return unboundedMouseOffset + MouseInputSource::getCurrentRawMousePosition();
}
void setScreenPosition (Point<float> p)