[ka-Map-users] That grabbing hand cursor...

Paul Spencer pspencer at dmsolutions.ca
Wed Mar 15 16:43:19 EST 2006


David,

grab/grabbing are CSS 3 cursors.  The order is somewhat important in  
that the browser will use the first one that doesn't cause an error  
so in the example you gave, grab/grabbing will never be used as move  
is a valid cursor in all browsers.  The errors that you see are not  
real errors, I think you will find they are css errors.  Using  
'filter' also causes this error in firefox.

I have committed a change putting the -moz version before the CSS 3  
version as I think it can only improve performance if the browser  
doesn't have to wade through numerous spurious errors even if the  
user doesn't generally see them

Cheers

Paul

On 15-Mar-06, at 4:20 PM, David Badke wrote:

> In Firefox 1.5, I get errors in the Javascript console (using the  
> Console Filter extension) whenever the grabbing hand cursor  
> switches from one state to the other ("Error parsing value for  
> property cursor."). I tracked it down to the cursor definitions in  
> kaTool.js:
>
>    /** the cursor to use when the map is not being dragged */
>    this.cursorNormal = ["url('images/grab.cur'),move", 'grab', '- 
> moz-grab', 'move'];
>    /** the cursor to use when the map is being dragged */
>    this.cursorDrag = ["url('images/grabbing.cur'),move",  
> 'grabbing', '-moz-grabbing', 'move'];
>
> It's the 'grab'/'grabbing' values that cause the error (in  
> kaMap.setCursor). Changing the order to:
>
>    /** the cursor to use when the map is not being dragged */
>    this.cursorNormal = ["url('images/grab.cur'),move", '-moz-grab',  
> 'move', 'grab'];
>    /** the cursor to use when the map is being dragged */
>    this.cursorDrag = ["url('images/grabbing.cur'),move", '-moz- 
> grabbing', 'move', 'grabbing'];
>
> eliminates the error, at least in Firefox (haven't tried it in IE).  
> I assume 'grab'/'grabbing' is meaningful in some browser, but  
> Firefox really doesn't like it. The cursor does display correctly,  
> since Firefox accepts '-moz-grab'/'-moz-grabbing', which the  
> setCursor function gets to eventually.
>
> This does tend to fill up the console with bogus errors. Could the  
> order be changed as above?
>
> David
>
> -- 
>
> David Badke
> Humanities Computing and Media Center
> University of Victoria, BC, Canada
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+






More information about the ka-Map-users mailing list