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

Update ColorPicker.pb #296

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

ErlendRovik
Copy link
Contributor

Fixed scrollwheel bug in named colorpicker.

Fixed scrollwheel bug in named colorpicker.
@@ -1114,6 +1114,18 @@ Procedure ColorPicker_Name_Event(*Entry.ColorPickerData, Gadget, Type)
EndIf

Case #GADGET_Color_Canvas1
If Type = #PB_EventType_MouseWheel
*Entry\First - GetGadgetAttribute(#GADGET_Color_Canvas1 , #PB_Canvas_WheelDelta)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a little bit too much with the spaces 😃 The convention for function parameters is to have one space after the comma, but none before it:

GetGadgetAttribute(#GADGET_Color_Canvas1, #PB_Canvas_WheelDelta)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I see that :-) , now I have fixed that and clicked commit here on Github, do I now have to submit a new pull request?

Scrollwheel support for Named Colorpicker
@TheQuinbox
Copy link
Contributor

@ErlendRovik no, just push the commits to the same branch, which you seemingly have already done.

@fantaisie-software fantaisie-software merged commit 152fb59 into fantaisie-software:devel Jan 17, 2025
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.

4 participants