File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11( function ( ) {
22 'use strict' ;
3-
3+ console . log ( ) ;
44 var colorPicker = function ( $document , $timeout ) {
55 return {
66 restrict : 'E' ,
2323 link : function ( $scope , element , attrs , control ) {
2424 $scope . onChangeValue = null ;
2525 $scope . updateModel = true ;
26+ $scope . chrome = Boolean ( window . chrome ) ;
27+ $scope . android_version = parseFloat ( window . navigator . userAgent . match ( / A n d r o i d \s ( [ 0 - 9 \. ] * ) / i) [ 1 ] ) ;
2628
2729 $scope . init = function ( ) {
2830 // if no color provided
657659 docElem = doc . documentElement ;
658660
659661 // hack for small chrome screens not position the clicks properly when the page is scrolled
660- if ( window . chrome && screen . width <= 768 ) {
662+ if ( $scope . chrome && $scope . android_version < 6 && screen . width <= 768 ) {
661663 return {
662664 top : rect . top - docElem . clientTop ,
663665 left : rect . left - docElem . clientLeft
You can’t perform that action at this time.
0 commit comments