view Platforms/Wasm/WasmViewport.cpp @ 837:847fd11384bc am-dev

don't forbid touchmove anymore at document level. It's a bit rough to re-enable it later i.e in components that needs it (SortableJS in my case).
author Alain Mazy <alain@mazy.be>
date Wed, 05 Jun 2019 17:43:59 +0200
parents 4f2416d519b4
children
line wrap: on
line source

#include "WasmViewport.h"

#include <vector>
#include <memory>

std::vector<std::shared_ptr<Deprecated::WidgetViewport>> wasmViewports;

void AttachWidgetToWasmViewport(const char* htmlCanvasId, Deprecated::IWidget* centralWidget) {
    std::shared_ptr<Deprecated::WidgetViewport> viewport(CreateWasmViewportFromCpp(htmlCanvasId));
    viewport->SetCentralWidget(centralWidget);

    wasmViewports.push_back(viewport);
}