Commit 52b6540
committed
Prevent Timeline selections that are out of bounds
timelineSetSelection now returns Nothing in case of an invalid selection
that's solely outside of the TimelineView for both a PointSelection and
a RangeSelection. A RangeSelection is additionally clamped to the bounds
of the TimelineView to stop dragging when the bounds have been reached.
The new return value is processed inside the Mouse and Event handling
accordingly. Within this the EventCursorChangedIndex handling now
includes updating previously omitted views. This fixes an issue where
following a RangeSelection with a selection inside the EventsView would
cause the previously omitted views to still display the information of
the RangeSelection and not the equivalent PointSelection of the
EventsView selection.
Lastly, fix an issue from the previous commit that added styling usage
inside the EventsView. The wrong background color was applied to a
selected Event when making the second PointSelection after a
RangeSelection or a PointSelection without a preceding RangeSelection.
StateSelected is now always applied when selected.1 parent 4743265 commit 52b6540
3 files changed
Lines changed: 52 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 353 | + | |
| 354 | + | |
359 | 355 | | |
360 | 356 | | |
361 | 357 | | |
362 | 358 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
| 359 | + | |
| 360 | + | |
371 | 361 | | |
372 | 362 | | |
373 | 363 | | |
374 | 364 | | |
375 | 365 | | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
| 366 | + | |
| 367 | + | |
384 | 368 | | |
385 | 369 | | |
386 | 370 | | |
| |||
435 | 419 | | |
436 | 420 | | |
437 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
438 | 440 | | |
439 | 441 | | |
440 | 442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
384 | 385 | | |
385 | 386 | | |
386 | 387 | | |
387 | | - | |
| 388 | + | |
388 | 389 | | |
389 | | - | |
390 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
391 | 407 | | |
392 | 408 | | |
393 | 409 | | |
| |||
402 | 418 | | |
403 | 419 | | |
404 | 420 | | |
405 | | - | |
406 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
407 | 425 | | |
408 | 426 | | |
409 | 427 | | |
| |||
424 | 442 | | |
425 | 443 | | |
426 | 444 | | |
427 | | - | |
428 | | - | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
429 | 449 | | |
430 | 450 | | |
431 | 451 | | |
| |||
0 commit comments