Browse Source

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

tags/2021-05-28
ed 6 years ago
parent
commit
56302416df
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      modules/juce_gui_basics/mouse/juce_MouseInputSource.cpp

+ 1
- 2
modules/juce_gui_basics/mouse/juce_MouseInputSource.cpp 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)


Loading…
Cancel
Save