Skip to content

Commit

Permalink
Hide the picker when offsetParent is scrolled
Browse files Browse the repository at this point in the history
  • Loading branch information
EastDesire committed Oct 31, 2015
1 parent b21fe6c commit 05be2ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jscolor.js
Expand Up @@ -543,7 +543,10 @@ var jsc = {


onParentScroll : function (e) {
jsc.redrawPosition();
// hide the picker when offsetParent is scrolled
if (jsc.picker && jsc.picker.owner) {
jsc.picker.owner.hide();
}
},


Expand Down

0 comments on commit 05be2ef

Please sign in to comment.