Merge pull request #7049 from symless/SYNERGY-1047-Scroll-does-not-work-in-case-of-macOS-is-server

SYNERGY-1047 Scroll doesn't work in case of macOS is server
This commit is contained in:
Igor Sikachyna 2021-07-06 13:31:10 +03:00 committed by GitHub
commit e69ea6f627
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 12 deletions

View file

@ -10,6 +10,7 @@ Bug fixes:
- #7015 Fix Windows service not starting up after sleep
- #7036 Fix tray icon not changing theme on Big Sur
- #7046 Fix MacOS 10.13 build
- #7049 Scroll doesn't work in case of macOS is server
Enhancements:
- #6998 Remove functionality related to the screen saver synchronisation

View file

@ -153,9 +153,6 @@ private:
// get the current scroll wheel speed
double getScrollSpeed() const;
// get the current scroll wheel speed
double getScrollSpeedFactor() const;
// enable/disable drag handling for buttons 3 and up
void enableDragTimer(bool enable);

View file

@ -1460,9 +1460,8 @@ OSXScreen::mapMacButtonToSynergy(UInt16 macButton) const
SInt32
OSXScreen::mapScrollWheelToSynergy(SInt32 x) const
{
// return accelerated scrolling but not exponentially scaled as it is
// on the mac.
double d = (1.0 + getScrollSpeed()) * x / getScrollSpeedFactor();
// return accelerated scrolling
double d = (1.0 + getScrollSpeed()) * x;
return static_cast<SInt32>(m_scrollDirection * 120.0 * d);
}
@ -1500,12 +1499,6 @@ OSXScreen::getScrollSpeed() const
return scaling;
}
double
OSXScreen::getScrollSpeedFactor() const
{
return pow(10.0, getScrollSpeed());
}
void
OSXScreen::enableDragTimer(bool enable)
{