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:
parent
7fad509483
commit
56302416df
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue