mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:40:04 +00:00 
			
		
		
		
	Add inverted threshold to mouse picking for geo icons/lines
This commit is contained in:
		
							parent
							
								
									ecf7579d8e
								
							
						
					
					
						commit
						27f8c1f56c
					
				
					 2 changed files with 8 additions and 4 deletions
				
			
		|  | @ -947,8 +947,10 @@ bool GeoIcons::RunMousePicking( | ||||||
|                    units::length::nautical_miles<double> {icon.di_->threshold_} |                    units::length::nautical_miles<double> {icon.di_->threshold_} | ||||||
|                       .value())) < 999 && |                       .value())) < 999 && | ||||||
| 
 | 
 | ||||||
|                 // Map distance is beyond the threshold
 |                 // Map distance is beyond/within the threshold
 | ||||||
|                 icon.di_->threshold_ < mapDistance) || |                 icon.di_->threshold_ < mapDistance && | ||||||
|  |                 (icon.di_->threshold_.value() >= 0.0 || | ||||||
|  |                  -(icon.di_->threshold_) > mapDistance)) || | ||||||
| 
 | 
 | ||||||
|              ( |              ( | ||||||
|                 // Geo icon has a start time
 |                 // Geo icon has a start time
 | ||||||
|  |  | ||||||
|  | @ -740,8 +740,10 @@ bool GeoLines::RunMousePicking( | ||||||
|                    units::length::nautical_miles<double> {line.di_->threshold_} |                    units::length::nautical_miles<double> {line.di_->threshold_} | ||||||
|                       .value())) < 999 && |                       .value())) < 999 && | ||||||
| 
 | 
 | ||||||
|                 // Map distance is beyond the threshold
 |                 // Map distance is beyond/within the threshold
 | ||||||
|                 line.di_->threshold_ < mapDistance) || |                 line.di_->threshold_ < mapDistance && | ||||||
|  |                 (line.di_->threshold_.value() >= 0.0 || | ||||||
|  |                  -(line.di_->threshold_) > mapDistance)) || | ||||||
| 
 | 
 | ||||||
|              ( |              ( | ||||||
|                 // Line has a start time
 |                 // Line has a start time
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak