fix(palette): add bounds check to activate selected
fix(palette): add bounds check to activate selected: a task in Trending-SWE1.0 (Harbor dataset). Title: fix(palette): add bounds check to activate selected
The task
**Title:** fix(palette): add bounds check to activate_selected
Part of scalingX/Trending-SWE1.0.