rem: if (SelectedPoint == 0) 
add: if (SelectedPoint == 0) { 
context: function ondrag(x,y,but,cmd,shift,capslock,option,ctrl){	var tmpF = fctns[current];	if (AllowEdit == 0 || tmpF.display == 0)		return;	if ( but == 0 ||  SelectedPoint < 0) {		EditedWithMouse();	// quand c'est delete c'est fait dans onidle()		SelectedPoint = -2;	// si on a relch c'est qu'il n'y a plus de points slectionns.		onidle(x,y);		// tout pareil...		draw();		return;	}		if (SelectedPoint < tmpF.np) {		if (tmpF["pa"][SelectedPoint].fix)			return;			if ( Snap2GridState )			x = val2x(tmpF, Math.round(x2val(tmpF, x) / tmpF.GridStep) * tmpF.GridStep);				x = ejies.clip(x, Bordure, BoxWidth - Bordure);		y = ejies.clip(y, Bordure + LegendBordure, BoxHeight - Bordure);			if (tmpF["np"] > 1) {			if (SelectedPoint == 0)				x = ejies.clip(x, Bordure, tmpF["pa"][SelectedPoint+1].x );  				if (SelectedPoint > 0 && SelectedPoint < (tmpF["np"] - 1))				x = ejies.clip(x, tmpF["pa"][SelectedPoint-1].x, tmpF["pa"][SelectedPoint+1].x);  				if (SelectedPoint == (tmpF["np"] - 1) )				x = ejies.clip(x, tmpF["pa"][SelectedPoint-1].x, BoxWidth - Bordure);  		}		EditedWithMouse.state++;				tmpF["pa"][SelectedPoint].x = x;		tmpF["pa"][SelectedPoint].y = y;		tmpF["pa"][SelectedPoint].valx = x2val(tmpF, x);		tmpF["pa"][SelectedPoint].valy = y2val(tmpF, y);		UpdateDisplay();	}}
meta: 6421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6421/e1ad277f683012a50e6fa24bebaad06cd926f115/ej.function.js/buggy/ejies-jsui/ej.function.js