Skip to content

Commit

Permalink
Respect "Disable Scrollwheel" on Checkbox WorkTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
maarxx committed Feb 10, 2023
1 parent 80a0feb commit 35c1426
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 35c1426

Please sign in to comment.