[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] WebGL 2.0 Reference Guide now available online
The behavior on mouseup on the select is awkward.
$(function() {
$('body').delegate('.ref-card-download', 'mouseup', function() {
if (this.value == 'Free PDFs') return;
window.open('https://www.khronos.org' + this.value);
return false;
});
});
If you select a version, and then try to select another, you bring the mouse down to drop the dropdown, release the mouse to select another version and it immediately opens a window with the already selected version.
It'd be better if you'd listened to a value change like so:
$('body').delegate('.ref-card-download', 'change', function() {
if (this.value == 'Free PDFs') return;