2
0
mirror of https://github.com/PitPik/tinyColorPicker synced 2025-07-15 05:54:29 -06:00

right click

This commit is contained in:
peterd 2016-02-17 19:36:08 +01:00
parent 2b1162fce4
commit 2d23b9553b
3 changed files with 6 additions and 4 deletions

View File

@ -141,6 +141,8 @@
var action = this.className.
replace(/cp-(.*?)(?:\s*|$)/, '$1').replace('-', '_');
if ((e.button || e.which) > 1) return;
e.preventDefault && e.preventDefault();
e.returnValue = false;
@ -207,7 +209,7 @@
a = alpha * _$alpha._width,
translate3d = _GPU ? 'translate3d' : '',
triggerValue = _$trigger[0].value,
hasNoValue = _$trigger[0].hasAttribute('value') &&
hasNoValue = _$trigger[0].hasAttribute('value') && // question this
triggerValue === '' && toggled !== undefined;
_$xy_slider._css = {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long