Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ofx gui slider scrolling #6144

Merged
merged 4 commits into from
Nov 13, 2018

Conversation

roymacdonald
Copy link
Contributor

Fix for this issue #6133

The scrolling was still being handled when the gui was not being drawn both in ofxSlider and ofxInputField.

Tested using the code provided in the mentioned issue.

Also,
there is some redundant code in ofxSlider.cpp and ofxInputField.cpp. Both have a function called toRange(...) which is identical in both. When the scroll callback is called this function is called. Can't we move this function to the ofxBaseGui for instance? Also, the code used in the scroll callback in both ofxSlider and ofxInputField is quite similar, maybe moving this to ofxBaseGui might be better too.

@roymacdonald
Copy link
Contributor Author

anything on this?

@arturoc arturoc merged commit 9dd4249 into openframeworks:master Nov 13, 2018
@arturoc
Copy link
Member

arturoc commented Nov 13, 2018

thanks! going to merge it into patch-release too so it's in 0.10.1

arturoc pushed a commit that referenced this pull request Nov 13, 2018
Fixes #6133

The scrolling was still being handled when the gui was not being drawn both in ofxSlider and ofxInputField.

Tested using the code provided in the mentioned issue.

Also,
there is some redundant code in ofxSlider.cpp and ofxInputField.cpp. Both have a function called toRange(...) which is identical in both. When the scroll callback is called this function is called. Can't we move this function to the ofxBaseGui for instance? Also, the code used in the scroll callback in both ofxSlider and ofxInputField is quite similar, maybe moving this to ofxBaseGui might be better too.
@roymacdonald roymacdonald deleted the fix-ofxGuiSliderScrolling branch November 13, 2018 21:29
olekristensen added a commit to olekristensen/openFrameworks that referenced this pull request Jan 2, 2019
* commit 'faeb05d54647915464dcf2bf23ee9da03d8abcd5': (54 commits)
  changelog and thanks scripts
  fixed thanks format
  THANKS.md
  create_package: pull OF from github instead of local
  create_package: pull OF from github instead of local
  Revert "ofConstants: revert version to 0.10.1"
  create_package: pull PG from master always
  PG latest commit
  changelof for 0.10.1
  ofTruetypeFont: Fix kerning factor. openframeworks#6136
  ofConstants: revert version to 0.10.1
  ofSoundBuffer getChannel fix (openframeworks#6117)
  ofSoundBuffer getChannel fix (openframeworks#6117)
  ofxGui: slider scrolling (openframeworks#6144)
  ofxGui: slider scrolling (openframeworks#6144)
  appveyor: fix ssl dependencies (openframeworks#6170)
  appveyor: fix ssl dependencies (openframeworks#6170)
  fix for xcode template file to allow PG to add frameworks and fix broken projects. closes openframeworks#6172
  workspace files for xcode template to enable legacy build in Xcode 10
  added camera and microphone permissions for mojave
  ...

# Conflicts:
#	apps/projectGenerator
olekristensen added a commit to olekristensen/openFrameworks that referenced this pull request Jan 2, 2019
…orks into stable

* 'stable' of https://github.com/openframeworks/openFrameworks: (105 commits)
  create_package: pull OF from github instead of local
  create_package: pull PG from master always
  PG latest commit
  changelof for 0.10.1
  ofTruetypeFont: Fix kerning factor. openframeworks#6136
  ofConstants: revert version to 0.10.1
  ofSoundBuffer getChannel fix (openframeworks#6117)
  ofxGui: slider scrolling (openframeworks#6144)
  appveyor: fix ssl dependencies (openframeworks#6170)
  fix for xcode template file to allow PG to add frameworks and fix broken projects. closes openframeworks#6172
  workspace files for xcode template to enable legacy build in Xcode 10
  added camera and microphone permissions for mojave
  fix drawArrow internal matrix calculation (openframeworks#6164)
  remove i386 architecture (openframeworks#6159)
  Revert "Update main.cpp (openframeworks#6150)" (openframeworks#6160)
  Update main.cpp (openframeworks#6150)
  fixes xcode template to not have OF as a dependcy but as a pre-build script. related to openframeworks#6139
  ofCamera with ortho enabled will respect a lensOffset by translating the projection matrix (openframeworks#6138)
  ofXml: add clear method which clears the xml doc
  Bugfix vs project template (pt.2) (openframeworks#6130)
  ...

# Conflicts:
#	libs/openFrameworks/app/ofAppGLFWWindow.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants