Skip to content

Commit cf784fb

Browse files
committed
Merge pull request fluffy-mods#204 from maarxx/respect_scroll_setting_on_type_checkboxes
Respect "Disable Scrollwheel" on Checkbox WorkTypes
2 parents 294148c + 35c1426 commit cf784fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/PawnColumns/PawnColumnWorker_WorkType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ private void HandleInteractionsDetailed(Rect rect, Pawn pawn) {
381381
}
382382

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

0 commit comments

Comments
 (0)