You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem happens with bevy_editor_pls 0.4 and the latest version on the main branch on github (when I fetched it the latest commit was f202123)
The issue
When I create an App with a window that has a custom size (different from the one provided in the default() of Window), the panning controls in the editor become completely unresponsive, leaving only the scrolling enabled.
Code to reproduce the issue
use bevy::{prelude::*, window::WindowResolution};use bevy_editor_pls::EditorPlugin;fnstartup(asset_server:Res<AssetServer>,mutcommands:Commands,){// Spawned for demonstration purposes, so the starting window isn't black
commands.spawn(Camera2dBundle::default());// Spawned for demonstration purposes to provide visual reference
commands.spawn(SpriteBundle{texture: asset_server.load("bevy.png"),
..default()});}fngame_window() -> Window{Window{resolution:WindowResolution::new(1150.0,600.0,),
..Default::default()}}fnmain(){App::new().add_plugins(DefaultPlugins.set(WindowPlugin{primary_window:Some(game_window()),
..default()})).add_plugin(EditorPlugin::default()).add_startup_system(startup).run();}
The text was updated successfully, but these errors were encountered:
InnocentusLime
changed the title
Panning breaks with a customly sized window
Panning breaks when a customly sized app window is used
Apr 16, 2023
System configuration
OS: Windows 11
Bevy: 0.10.1 (from crates.io)
Display resolution
:1920 x 1080
rustc --version
:rustc 1.68.2 (9eb3afe9e 2023-03-27)
rustup default
:stable-x86_64-pc-windows-msvc
bevy startup output:
What versions the problem happens on
This problem happens with bevy_editor_pls 0.4 and the latest version on the main branch on github (when I fetched it the latest commit was f202123)
The issue
When I create an App with a window that has a custom size (different from the one provided in the
default()
ofWindow
), the panning controls in the editor become completely unresponsive, leaving only the scrolling enabled.Code to reproduce the issue
The text was updated successfully, but these errors were encountered: