Skip to content

Commit

Permalink
Merge pull request fluffy-mods#204 from maarxx/respect_scroll_setting…
Browse files Browse the repository at this point in the history
…_on_type_checkboxes

Respect "Disable Scrollwheel" on Checkbox WorkTypes
  • Loading branch information
Doomster14 committed Nov 12, 2023
2 parents 294148c + 35c1426 commit cf784fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/PawnColumns/PawnColumnWorker_WorkType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private void HandleInteractionsDetailed(Rect rect, Pawn pawn) {
}

private void HandleInteractionsToggle(Rect rect, Pawn pawn) {
if ((Event.current.type == EventType.MouseDown || Event.current.type == EventType.ScrollWheel)
if ((Event.current.type == EventType.MouseDown || (Event.current.type == EventType.ScrollWheel && !Settings.disableScrollwheel))
&& Mouse.IsOver(rect)) {
// track priority so we can play appropriate sounds
bool active = pawn.GetPriority( def.workType, VisibleHour ) > 0;
Expand Down

0 comments on commit cf784fb

Please sign in to comment.