add selection of text by using shift+mouse click

This commit is contained in:
Jinhao
2015-11-02 00:33:22 +08:00
parent 8da183cfab
commit 9fd1a594cb
6 changed files with 73 additions and 70 deletions

View File

@@ -111,8 +111,11 @@ namespace drawerbase {
void drawer::mouse_down(graph_reference, const arg_mouse& arg)
{
if(editor_->mouse_down(arg.button, arg.pos))
if (editor_->mouse_pressed(arg))
{
editor_->render(true);
API::lazy_refresh();
}
}
void drawer::mouse_move(graph_reference, const arg_mouse& arg)
@@ -123,7 +126,7 @@ namespace drawerbase {
void drawer::mouse_up(graph_reference graph, const arg_mouse& arg)
{
if(editor_->mouse_up(arg.button, arg.pos))
if(editor_->mouse_pressed(arg))
API::lazy_refresh();
}