<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating the perfect slider</title>
	<atom:link href="http://lea.verou.me/2009/04/creating-the-perfect-slider/feed/" rel="self" type="application/rss+xml" />
	<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/</link>
	<description>Life at the bleeding edge (of web standards)</description>
	<lastBuildDate>Fri, 10 Feb 2012 07:25:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Lucas</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-439</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Tue, 16 Jun 2009 02:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-439</guid>
		<description>Sorry, I forgot about Opera. You can really tell that Google Chrome has been influenced by it.</description>
		<content:encoded><![CDATA[<p>Sorry, I forgot about Opera. You can really tell that Google Chrome has been influenced by it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naked Geese Reunion</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-283</link>
		<dc:creator>Naked Geese Reunion</dc:creator>
		<pubDate>Tue, 05 May 2009 08:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-283</guid>
		<description>Opera for the win, then, is it? ; )</description>
		<content:encoded><![CDATA[<p>Opera for the win, then, is it? ; )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-236</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Sun, 03 May 2009 20:13:26 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-236</guid>
		<description>One thing to keep in mind is to make sure it compatible with other web browsers like firefox, google chrome, and IE (eh!).</description>
		<content:encoded><![CDATA[<p>One thing to keep in mind is to make sure it compatible with other web browsers like firefox, google chrome, and IE (eh!).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naked Geese Reunion</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-171</link>
		<dc:creator>Naked Geese Reunion</dc:creator>
		<pubDate>Sat, 25 Apr 2009 01:22:51 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-171</guid>
		<description>Wholeheartedly agree with the last paragraph here; key mappings for something like a color picker is /definitely/ a bit over-the-top. However, I don&#039;t reckon this is still a big issue; the (ideal, in my opinion) Firefox functionality of returning focus to the element that got blur()&#039;ed is easily imitated by keeping track of the last element of your color picker to receive focus.</description>
		<content:encoded><![CDATA[<p>Wholeheartedly agree with the last paragraph here; key mappings for something like a color picker is /definitely/ a bit over-the-top. However, I don&#8217;t reckon this is still a big issue; the (ideal, in my opinion) Firefox functionality of returning focus to the element that got blur()&#8217;ed is easily imitated by keeping track of the last element of your color picker to receive focus.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lea Verou</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-170</link>
		<dc:creator>Lea Verou</dc:creator>
		<pubDate>Fri, 24 Apr 2009 18:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-170</guid>
		<description>I wholeheartedly agree with your remarks and already had them in mind (exept the unit tests *blush* ). However they are mostly implementation guidelines, so they are a bit out of the scope of this article (which is usability for the end user). Valid points though, all of them. :)</description>
		<content:encoded><![CDATA[<p>I wholeheartedly agree with your remarks and already had them in mind (exept the unit tests *blush* ). However they are mostly implementation guidelines, so they are a bit out of the scope of this article (which is usability for the end user). Valid points though, all of them. <img src='http://lea.verou.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lea Verou</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-169</link>
		<dc:creator>Lea Verou</dc:creator>
		<pubDate>Fri, 24 Apr 2009 17:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-169</guid>
		<description>That&#039;s actually possible. The event.wheelDelta (or event.detail) does contain this information. However, there are differences across browsers (for instance Safari reports about 4 times larger deltas) that make it quite difficult to implement this without browser sniffing. :(</description>
		<content:encoded><![CDATA[<p>That&#8217;s actually possible. The event.wheelDelta (or event.detail) does contain this information. However, there are differences across browsers (for instance Safari reports about 4 times larger deltas) that make it quite difficult to implement this without browser sniffing. <img src='http://lea.verou.me/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lea Verou</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-168</link>
		<dc:creator>Lea Verou</dc:creator>
		<pubDate>Fri, 24 Apr 2009 17:46:37 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-168</guid>
		<description>If you design the slider for a particular form, and don&#039;t want to make it reusable, setting the focus on the form&#039;s submit button would be a good idea. However, there&#039;s not always 1 submit button on a form. Sometimes there are none, while other times there are more than one, so it&#039;s not really feasible for reusable sliders. 

As for the focus, in Firefox if the user presses Tab after blur() is called, then the focus goes to the element that previously had focus (in our case, the slider thumb). In IE, Opera and Webkit, what you describe happens (the tab sequence starts over).

I think you&#039;re right, it doesn&#039;t seem very useful now that I think about it. However, I can&#039;t think of anything else that the user might want to do when hitting Esc while the slider is focused, and I also saw it in various other implementations, so I adapted it as well.

Configurable keyboard mapping might be useful for redistributable widgets, so that the developer can set the keyboard mappings without altering the slider code. However, for the end user, it sounds a bit far-fetched (for most applications).</description>
		<content:encoded><![CDATA[<p>If you design the slider for a particular form, and don&#8217;t want to make it reusable, setting the focus on the form&#8217;s submit button would be a good idea. However, there&#8217;s not always 1 submit button on a form. Sometimes there are none, while other times there are more than one, so it&#8217;s not really feasible for reusable sliders. </p>
<p>As for the focus, in Firefox if the user presses Tab after blur() is called, then the focus goes to the element that previously had focus (in our case, the slider thumb). In IE, Opera and Webkit, what you describe happens (the tab sequence starts over).</p>
<p>I think you&#8217;re right, it doesn&#8217;t seem very useful now that I think about it. However, I can&#8217;t think of anything else that the user might want to do when hitting Esc while the slider is focused, and I also saw it in various other implementations, so I adapted it as well.</p>
<p>Configurable keyboard mapping might be useful for redistributable widgets, so that the developer can set the keyboard mappings without altering the slider code. However, for the end user, it sounds a bit far-fetched (for most applications).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sander Aarts</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-167</link>
		<dc:creator>Sander Aarts</dc:creator>
		<pubDate>Fri, 24 Apr 2009 17:31:49 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-167</guid>
		<description>But if the focus goes nowhere it means that people who use their keyboard to navigate will probably have to tab al the way from the top of the page to wherever they want to go. Maybe that&#039;s what you want, but perhaps it&#039;s more useful to set focus on the form submit button. Unless that one is right next to the slider anyway, cause then tab will do.

Perhaps you can make it so that users can configure their own keyboard mapping ;-)</description>
		<content:encoded><![CDATA[<p>But if the focus goes nowhere it means that people who use their keyboard to navigate will probably have to tab al the way from the top of the page to wherever they want to go. Maybe that&#8217;s what you want, but perhaps it&#8217;s more useful to set focus on the form submit button. Unless that one is right next to the slider anyway, cause then tab will do.</p>
<p>Perhaps you can make it so that users can configure their own keyboard mapping <img src='http://lea.verou.me/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kangax</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-165</link>
		<dc:creator>kangax</dc:creator>
		<pubDate>Fri, 24 Apr 2009 16:45:48 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-165</guid>
		<description>Another thing to have mind is to make slider degrade properly (for non-JS clients) ;)

As far as implementation, I find callback/event-based widgets the most flexible and easy to use. For example, instead of specifying an input field where a current value would be populated, a user would instead subscribe to  &quot;onchange&quot; event (or a callback). That event (or a callback) would carry a new value, which user would decide what to do with herself (and could, for example, format it before an actual output, or maybe do not even output but send to a server with a certain interval).

Other additions to consider are multiple handles (e.g. for specifying ranges) and custom step values (e.g. making it possible to specify a range of 50-150 with a step of 25).

Oh, and of course unit tests are a must for any serious script. Unfortunately, there are very few scripts on the web which pay attention to testing.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Another thing to have mind is to make slider degrade properly (for non-JS clients) <img src='http://lea.verou.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>As far as implementation, I find callback/event-based widgets the most flexible and easy to use. For example, instead of specifying an input field where a current value would be populated, a user would instead subscribe to  &#8220;onchange&#8221; event (or a callback). That event (or a callback) would carry a new value, which user would decide what to do with herself (and could, for example, format it before an actual output, or maybe do not even output but send to a server with a certain interval).</p>
<p>Other additions to consider are multiple handles (e.g. for specifying ranges) and custom step values (e.g. making it possible to specify a range of 50-150 with a step of 25).</p>
<p>Oh, and of course unit tests are a must for any serious script. Unfortunately, there are very few scripts on the web which pay attention to testing.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naked Geese Reunion</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-164</link>
		<dc:creator>Naked Geese Reunion</dc:creator>
		<pubDate>Fri, 24 Apr 2009 08:00:55 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-164</guid>
		<description>It is perhaps just me, but I&#039;ve rather always wished a slider would respond to the  &quot;fierceness&quot; of my mousewheel actions. That is, if I just carefully push it up one tick, I&#039;d like for the value to increase by one; if, however, I executed a very abrupt and forceful scrolling of the mousewheel down, it&#039;d be fantastic to see the value drop by twenty or so. Just a thought... : )</description>
		<content:encoded><![CDATA[<p>It is perhaps just me, but I&#8217;ve rather always wished a slider would respond to the  &#8220;fierceness&#8221; of my mousewheel actions. That is, if I just carefully push it up one tick, I&#8217;d like for the value to increase by one; if, however, I executed a very abrupt and forceful scrolling of the mousewheel down, it&#8217;d be fantastic to see the value drop by twenty or so. Just a thought&#8230; : )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lea Verou</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-163</link>
		<dc:creator>Lea Verou</dc:creator>
		<pubDate>Fri, 24 Apr 2009 04:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-163</guid>
		<description>Hi again Sander Arts! Thanks for commenting. :)

I had a horizontal slider in mind, because this is what I actually wrote earlier. (since the results of the &lt;a href=&quot;http://bit.ly/colorsurvey&quot; rel=&quot;nofollow&quot;&gt;color survey&lt;/a&gt; so far display an inclination towards horizontal sliders) For vertical sliders, up and down arrow keys would be far more suitable, definitely!

As for horizontal ones, I think the keyboard mappings you are suggesting seem equally as usable as mine (I still prefer mine, but it&#039;s a matter of personal taste). However, we are both speculating and judging from ourselves. The best way to determine which keyboard mappings are actually better would be a usability test. However that&#039;s not something easily done for such a purpose.

&quot;Putting the bar high&quot; is an english expression AFAIK, but bare in mind that English isn&#039;t my native language either ;)

As for where the focus goes, I basically call blur() when the user hits Esc, so it goes to ...nowhere (?). Hmmm...</description>
		<content:encoded><![CDATA[<p>Hi again Sander Arts! Thanks for commenting. <img src='http://lea.verou.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I had a horizontal slider in mind, because this is what I actually wrote earlier. (since the results of the <a href="http://bit.ly/colorsurvey" rel="nofollow">color survey</a> so far display an inclination towards horizontal sliders) For vertical sliders, up and down arrow keys would be far more suitable, definitely!</p>
<p>As for horizontal ones, I think the keyboard mappings you are suggesting seem equally as usable as mine (I still prefer mine, but it&#8217;s a matter of personal taste). However, we are both speculating and judging from ourselves. The best way to determine which keyboard mappings are actually better would be a usability test. However that&#8217;s not something easily done for such a purpose.</p>
<p>&#8220;Putting the bar high&#8221; is an english expression AFAIK, but bare in mind that English isn&#8217;t my native language either <img src='http://lea.verou.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>As for where the focus goes, I basically call blur() when the user hits Esc, so it goes to &#8230;nowhere (?). Hmmm&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sander Aarts</title>
		<link>http://lea.verou.me/2009/04/creating-the-perfect-slider/#comment-162</link>
		<dc:creator>Sander Aarts</dc:creator>
		<pubDate>Fri, 24 Apr 2009 04:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=321#comment-162</guid>
		<description>Sounds great!
Personally I find it quite hard to make good intuitive and usable interfaces and judging most websites/applications others do to. It&#039;s nice see you put the bar high (is this a real English expression or am I just thinking Dutch, writing English?).

Some remarks though on the keyboard navigation:
Why not use up/down arrow keys? I&#039;d suggest the following keys:
- left/right arrow: big steps
- up/down arrow: small steps (fine tuning)
- ctrl + left/right: min/max

I associate the left/right arrow keys with bigger steps/more speed than the up/down keys, probably because they&#039;re farther apart (well on most keyboard I know of anyway). Enabling all kinds of sliding to be done using the arrow keys makes sure the user can hold her hand in one position. Home/End could still be an alternative for min/max for people who have problems pushing two buttons at the same time (maybe because they have only one hand).

Where does the focus go when you hit Esc?

cheers!</description>
		<content:encoded><![CDATA[<p>Sounds great!<br />
Personally I find it quite hard to make good intuitive and usable interfaces and judging most websites/applications others do to. It&#8217;s nice see you put the bar high (is this a real English expression or am I just thinking Dutch, writing English?).</p>
<p>Some remarks though on the keyboard navigation:<br />
Why not use up/down arrow keys? I&#8217;d suggest the following keys:<br />
- left/right arrow: big steps<br />
- up/down arrow: small steps (fine tuning)<br />
- ctrl + left/right: min/max</p>
<p>I associate the left/right arrow keys with bigger steps/more speed than the up/down keys, probably because they&#8217;re farther apart (well on most keyboard I know of anyway). Enabling all kinds of sliding to be done using the arrow keys makes sure the user can hold her hand in one position. Home/End could still be an alternative for min/max for people who have problems pushing two buttons at the same time (maybe because they have only one hand).</p>
<p>Where does the focus go when you hit Esc?</p>
<p>cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

