News for hackers. Stuff that matters.
Re:Chosen: A javascript plug-in that makes long select boxes... by colinr on Friday July 22, 2011 @08:53AM (#2793285)
Looks fantastic, but here's another feature it doesn't have which makes it feel less native.

Try mouse scrolling too far whilst the menu's options are open/visible. The parent page scrolls as well when you reach the start/end. This doesn't happen with a normal select menu.

I wonder if there's a way to do an event.preventDefault() on the mouse scroll event when reaching the end of the list?

Re:Chosen: A javascript plug-in that makes long select boxes... by Martijn on Friday July 22, 2011 @09:04AM (#2793317)
FF on Mac actually tries to do something clever here. It won't start scrolling the page itself until after a small delay or until you move the mouse.
Re:Chosen: A javascript plug-in that makes long select boxes... by bencevans on Friday July 22, 2011 @11:55AM (#2794027)
That's exactly what i found but on the whole I give it a thumbs up.
Re:Chosen: A javascript plug-in that makes long select boxes... by dlikhten on Friday July 22, 2011 @05:17PM (#2795227)
Not just looks, it solves certain big usability problems I have with regular selects or checkboxes for values. However the few non-native problems are indeed problematic. We got brainpower here, lets make it work!