mirror of
https://github.com/deskflow/deskflow.git
synced 2026-06-25 21:12:01 +08:00
SYNERGY-1047 Scroll doesn't work in case of macOS is server
This commit is contained in:
parent
fdb947e0af
commit
d3dea8e762
@ -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);
|
||||
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user