-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
arturoc
merged 4 commits into
openframeworks:master
from
roymacdonald:fix-ofxGuiSliderScrolling
Nov 13, 2018
Merged
Fix ofx gui slider scrolling #6144
arturoc
merged 4 commits into
openframeworks:master
from
roymacdonald:fix-ofxGuiSliderScrolling
Nov 13, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anything on this? |
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.
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.