Skip to content

Commit

Permalink
Remove check for touch input in MouseInputSourceInternal::getRawScree…
Browse files Browse the repository at this point in the history
…nPosition() and instead use the cached mouse position from the native peer impls
  • Loading branch information
ed95 committed Mar 12, 2019
1 parent 7fad509 commit 5630241
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/juce_gui_basics/mouse/juce_MouseInputSource.cpp
Expand Up @@ -96,8 +96,7 @@ class MouseInputSourceInternal : private AsyncUpdater

Point<float> getRawScreenPosition() const noexcept
{
return unboundedMouseOffset + (inputType != MouseInputSource::InputSourceType::touch ? MouseInputSource::getCurrentRawMousePosition()
: lastScreenPos);
return unboundedMouseOffset + MouseInputSource::getCurrentRawMousePosition();
}

void setScreenPosition (Point<float> p)
Expand Down

0 comments on commit 5630241

Please sign in to comment.