Fix multitouch example
This commit is contained in:
parent
9a02d60ba5
commit
edce457365
1 changed files with 3 additions and 2 deletions
|
|
@ -2,7 +2,8 @@
|
||||||
//! a circle around each fingertip. This only works on touch-enabled
|
//! a circle around each fingertip. This only works on touch-enabled
|
||||||
//! computers like Microsoft Surface.
|
//! computers like Microsoft Surface.
|
||||||
use iced::widget::canvas::event;
|
use iced::widget::canvas::event;
|
||||||
use iced::widget::canvas::{self, Canvas, Cursor, Geometry, Stroke};
|
use iced::widget::canvas::stroke::{self, Stroke};
|
||||||
|
use iced::widget::canvas::{self, Canvas, Cursor, Geometry};
|
||||||
use iced::{
|
use iced::{
|
||||||
executor, touch, window, Application, Color, Command, Element, Length,
|
executor, touch, window, Application, Color, Command, Element, Length,
|
||||||
Point, Rectangle, Settings, Subscription, Theme,
|
Point, Rectangle, Settings, Subscription, Theme,
|
||||||
|
|
@ -186,7 +187,7 @@ impl canvas::Program<Message> for State {
|
||||||
frame.stroke(
|
frame.stroke(
|
||||||
&path,
|
&path,
|
||||||
Stroke {
|
Stroke {
|
||||||
color: Color::BLACK,
|
style: stroke::Style::Solid(Color::BLACK),
|
||||||
width: 3.0,
|
width: 3.0,
|
||||||
..Stroke::default()
|
..Stroke::default()
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue